From 6c2f94e8f68957f8e42f1e65b492c05baf8a5704 Mon Sep 17 00:00:00 2001 From: olipet Date: Thu, 23 Aug 2007 07:15:47 +0000 Subject: beginning on sound stuff --- (limited to 'data') 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__ -- cgit v0.9.1