User:Birgit Bachler/techday02
< User:Birgit Bachler
Revision as of 20:34, 23 September 2010 by Migratebot (talk | contribs) (Created page with "
<source lang="text"> sox -c2 -r44100 -n -t wav - synth 0.2 pinknoise vol 1.0 fade l 0 0.2 0.19 > 01.wav
sox -c1 -r44100 -n 02.wav synth 0.3 sine 44-40 vol 0.7
sox -c2 -r44100...")
sox -c2 -r44100 -n -t wav - synth 0.2 pinknoise vol 1.0 fade l 0 0.2 0.19 > 01.wav
sox -c1 -r44100 -n 02.wav synth 0.3 sine 44-40 vol 0.7
sox -c2 -r44100 -n -t wav - synth 0.2 brownnoise vol 0.7 fade l 0 0.2 0.19 > 03.wav
sox -c1 -r44100 -n 04.wav synth 0.3 sine 48-44 vol 0.7
sox -c2 -r44100 -n -t wav - synth 0.2 noise vol 1.0 fade l 0 0.2 0.19 > 05.wav
sox -c1 -r44100 -n 06.wav synth 0.3 sine 52-44 vol 0.7
sox 01.wav --rate 44100 --bits 16 --channels 2 --encoding signed-integer 01.raw
sox 02.wav --rate 44100 --bits 16 --channels 2 --encoding signed-integer 02.raw
sox 03.wav --rate 44100 --bits 16 --channels 2 --encoding signed-integer 03.raw
sox 04.wav --rate 44100 --bits 16 --channels 2 --encoding signed-integer 04.raw
sox 05.wav --rate 44100 --bits 16 --channels 2 --encoding signed-integer 05.raw
sox 06.wav --rate 44100 --bits 16 --channels 2 --encoding signed-integer 06.raw
#!/usr/bin/env python
from os import system
for i in range(3):
for i in range(2):
system("cat 01.raw >> song.raw")
system("cat 02.raw >> song.raw")
system("cat 03.raw >> song.raw")
system("cat 04.raw >> song.raw")
system("cat 05.raw >> song.raw")
system("cat 06.raw >> song.raw")
system("sox --rate 44100 --bits 16 --channels 2 --encoding signed-integer song.raw song.wav")
system("rm song.raw")
system("play song.wav")