User:Alexander Roidl/sonificaton: Difference between revisions
(Created page with " 1. create a tone 2. convert to raw sox tone_440hz.wav -b 16 -c 1 -r 44100 -t raw file.raw 3. concert to image convert -depth 8 -size 1000x1000 rgb:file.raw file.jpg =RAW Loo...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File:Sonic.gif|thumbnail]] | |||
1. create a tone | |||
2. convert to raw | 2. convert to raw | ||
sox tone_440hz.wav -b 16 -c 1 -r 44100 -t raw file.raw | sox tone_440hz.wav -b 16 -c 1 -r 44100 -t raw file.raw | ||
3. concert to image | 3. concert to image | ||
convert -depth 8 -size 1000x1000 rgb:file.raw file.jpg | convert -depth 8 -size 1000x1000 rgb:file.raw file.jpg | ||
=RAW Loop= | =RAW Loop= |
Latest revision as of 08:51, 27 March 2018
1. create a tone
2. convert to raw
sox tone_440hz.wav -b 16 -c 1 -r 44100 -t raw file.raw
3. concert to image
convert -depth 8 -size 1000x1000 rgb:file.raw file.jpg
RAW Loop
#!/bin/bash counter=1 while [ $counter -le 10 ] do sox -r $((1000-$counter)) -e unsigned -b 8 -c 2 tone.wav tone.raw convert -depth 8 -size $((400-$counter*20))x$((400-$counter*20)) rgb:tone.raw tone.gif cp tone.gif tone$counter.gif cp tone.gif toneNeu.raw sox -r $((85000-$counter)) -e unsigned -b 8 -c 1 toneNeu.raw tone.wav ((counter++)) done echo All done