New topic: 

How to make thread sleep for use with NotePlayer?

<http://forums.realsoftware.com/viewtopic.php?t=38234>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        8rad          Post subject: How to make thread sleep for use 
with NotePlayer?Posted: Sun Mar 20, 2011 5:32 pm                         
Joined: Thu Jun 17, 2010 2:49 pm
Posts: 83                So I want my app to play different sequences of music 
notes at certain times. It's easy with NotePlayer to make notes play at the 
same time. But I want something like...

PlayNote()
Sleep for half second
PlayNote()
Sleep for another half second.

This is the way I came up with to play my sound effects. How do I do the thread 
sleeping/waiting in RealBasic? Is this the best way to do what I want?      
_________________
RealStudio user.  
                             Top                 timhare          Post subject: 
Re: How to make thread sleep for use with NotePlayer?Posted: Sun Mar 20, 2011 
7:27 pm                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 9499
Location: Portland, OR  USA                No, it isn't the best approach.  Try 
it first with a Timer.  Put the notes into queue and play the next one every 
time the timer fires.  (You can make a simple queue using an array.)   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to