Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Music Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chaos




PostPosted: Sat Nov 27, 2010 2:31 pm   Post subject: Music Help

How do you loop songs?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Nov 27, 2010 4:29 pm   Post subject: RE:Music Help

musicmodule
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
TokenHerbz




PostPosted: Sat Nov 27, 2010 4:33 pm   Post subject: RE:Music Help

you could fork it too
chaos




PostPosted: Mon Nov 29, 2010 7:58 pm   Post subject: RE:Music Help

ok, i need help with this.
i'm creating a music quiz program and it will randomly choose a song and play it.
How do you loop the randomizing and the playing of the songs?
TokenHerbz




PostPosted: Tue Nov 30, 2010 8:36 am   Post subject: RE:Music Help

the idea is simple.

code:

loop
     Rand.Int (1, max number of songs)
     play the song that's been picked
end loop
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: