diff options
author | olipet <olivier.belanger@umontreal.ca> | 2007-08-23 07:15:47 (GMT) |
---|---|---|
committer | olipet <olivier.belanger@umontreal.ca> | 2007-08-23 07:15:47 (GMT) |
commit | 6c2f94e8f68957f8e42f1e65b492c05baf8a5704 (patch) | |
tree | f9f30593cab0fd6200c0988a07fd85d14565cb04 /data | |
parent | ecaa8b4029a921f118b44a9ad3f618b291722bd0 (diff) |
beginning on sound stuff
Diffstat (limited to 'data')
-rw-r--r-- | data/sound/playSineWave | 6 | ||||
-rw-r--r-- | data/sound/sequence | 12 | ||||
-rw-r--r-- | data/sound/sndInfo | 4 |
3 files changed, 22 insertions, 0 deletions
diff --git a/data/sound/playSineWave b/data/sound/playSineWave new file mode 100644 index 0000000..8cda42e --- /dev/null +++ b/data/sound/playSineWave @@ -0,0 +1,6 @@ +import sys +sys.path.append('/usr/share/activities/Pippy.activity/sound') +from snd import * +playSine() +audioOut() + diff --git a/data/sound/sequence b/data/sound/sequence new file mode 100644 index 0000000..f870094 --- /dev/null +++ b/data/sound/sequence @@ -0,0 +1,12 @@ +import sys +import random +sys.path.append('/usr/share/activities/Pippy.activity/sound') +from snd import * +for i in range(25): + pitch = random.randint(500,2000) + amp = 5000 + dur = 0.1 + starttime = i * 0.1 + playSine(pitch, amp, dur, starttime) +audioOut() + diff --git a/data/sound/sndInfo b/data/sound/sndInfo new file mode 100644 index 0000000..f40accb --- /dev/null +++ b/data/sound/sndInfo @@ -0,0 +1,4 @@ +import sys +sys.path.append('/usr/share/activities/Pippy.activity/sound') +from snd import * +print playSine.__doc__ |