![]() |
|
#3
|
|||
|
|||
|
Thank you!
Hi Erikvdb!
First of all thank you so much for the prompt and detailed help! It really helps me understand what is happening in the code. Before I saw your reply, I eventually had managed to do this, it sort of seemed to work: import viz import viztask import random viz.go() sound = viz.addAudio('pip.wav') def soundloop(): for x in range (10): yield viztask.waitTime(random.randrange(3,7,1)) pip.play() soundtask = viztask.schedule(soundloop()) But I can understand how your code if different and better and I will play around with it a bit to see what happens if I change various bits of it. Again, thank you so very much!
|
| Tags |
| sound loop |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| preEuler not working? or how to teleport subject multiple times | ichitaka | Precision Position Tracker (PPT) | 1 | 12-19-2015 04:27 AM |
| output to multiple (two) sound devices | GiudiceLab | Vizard | 1 | 08-05-2009 02:12 PM |
| Multiple Sound Devices | GiudiceLab | Vizard | 2 | 06-06-2009 11:29 AM |
| how can I detect when a sound finished playing? | bernie | Vizard | 3 | 05-10-2007 07:08 PM |
| Error when playing wav files...? | vjonshih | Vizard | 1 | 05-23-2005 01:21 PM |