diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | data/sound/getSoundList | 2 | ||||
-rw-r--r-- | data/sound/playSine | 2 | ||||
-rw-r--r-- | data/sound/playWave | 2 | ||||
-rw-r--r-- | data/sound/sequence | 2 | ||||
-rw-r--r-- | data/sound/sndInfo | 2 | ||||
-rwxr-xr-x | sound/sound.py (renamed from sound/snd.py) | 0 |
7 files changed, 7 insertions, 5 deletions
@@ -1,3 +1,5 @@ +* Added getSoundList() which returns the list of available sounds for playWave() (Flipo) + 4 * Journal integration diff --git a/data/sound/getSoundList b/data/sound/getSoundList index 09876c1..44c026d 100644 --- a/data/sound/getSoundList +++ b/data/sound/getSoundList @@ -1,7 +1,7 @@ import sys from sugar.activity.activity import get_bundle_path sys.path.append(get_bundle_path() + '/sound') -from snd import * +from sound import * for sound in sorted(getSoundList()): print sound diff --git a/data/sound/playSine b/data/sound/playSine index a641b72..cd97576 100644 --- a/data/sound/playSine +++ b/data/sound/playSine @@ -1,7 +1,7 @@ import sys from sugar.activity.activity import get_bundle_path sys.path.append(get_bundle_path() + '/sound') -from snd import * +from sound import * playSine() audioOut() diff --git a/data/sound/playWave b/data/sound/playWave index 471ca31..27605bd 100644 --- a/data/sound/playWave +++ b/data/sound/playWave @@ -1,7 +1,7 @@ import sys from sugar.activity.activity import get_bundle_path sys.path.append(get_bundle_path() + '/sound') -from snd import * +from sound import * playWave(sound='didjeridu', loop=True, duration=5) audioOut() diff --git a/data/sound/sequence b/data/sound/sequence index 1bdc966..1577c9d 100644 --- a/data/sound/sequence +++ b/data/sound/sequence @@ -2,7 +2,7 @@ import sys import random from sugar.activity.activity import get_bundle_path sys.path.append(get_bundle_path() + '/sound') -from snd import * +from sound import * for i in range(25): pitch = random.randint(500,2000) diff --git a/data/sound/sndInfo b/data/sound/sndInfo index 0a337f9..529995e 100644 --- a/data/sound/sndInfo +++ b/data/sound/sndInfo @@ -1,6 +1,6 @@ import sys from sugar.activity.activity import get_bundle_path sys.path.append(get_bundle_path() + '/sound') -from snd import * +from sound import * print playSine.__doc__ diff --git a/sound/snd.py b/sound/sound.py index 3699ac6..3699ac6 100755 --- a/sound/snd.py +++ b/sound/sound.py |