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

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




PostPosted: Thu Jan 25, 2007 8:59 am   Post subject: A Little Help With Music Please

I kind of want to play some music, like Turing produced music, not Midi files. And also I would like it to be working while I have an animation moving aswell without it loading then moving for a split second then loading. I'm making a game... obviously, and I'm making everything myself. I know how to input the notes... well not technically all of them. But I'd like to just have the character moving while there is music playing. I know there is a way but I'm not sure on how to go about doing it. I am experianced with procedures so if it involves that then I would be probably okay. Unless it involves new or record Your help would be much aprieciated.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Jan 25, 2007 11:40 am   Post subject: RE:A Little Help With Music Please

Why not record your music as a file? Fruity Loops come to mind, though I'm sure there are other alternatives as well. Such music creation applications give you much more control and feedback than Turing's "ab>cd" write out.

Music.PlayFileReturn will play your music in the background of your game.

Otherwise you would have to set up a process.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Hariss




PostPosted: Thu Jan 25, 2007 11:44 am   Post subject: Re: A Little Help With Music Please

i also made a game and had music in the background. I f you are moving something, like a character input keydown just incorporate this into your loop
Music.PlayFileLoop("name of file")
to stop
Music.PlayFileStop or somehting like that.
romantic_programmer




PostPosted: Fri Jan 26, 2007 3:18 pm   Post subject: RE:A Little Help With Music Please

also last fall to go with Tonys response. you are able to use Mp3 formatted files in turing... so if you are going to use an actual music file mp3 is smaller and loads faster the midi files...
raider366




PostPosted: Fri Jan 26, 2007 8:31 pm   Post subject: Re: A Little Help With Music Please

Try using process and fork. Do somethign like this:

process music1 % Give the process a name
%Play the music you want here
end music1 % end the process

%Now right before your animation put in this

fork music1 % To run the music

Process and fork allow you to play music as well as do animations at the same time.
B.T.W. Don't put a process in a prodcedure it won't work... make sure the process is outside any procedures.
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: