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

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




PostPosted: Fri Jun 15, 2012 2:45 pm   Post subject: Help With Music In Turing Please?

What is it you are trying to achieve?
<Replace all the <> with your answers/code and remove the <>>


What is the problem you are having?
I can't play an mp3 file in turing. I want the music to play once a person pushes a button.


Describe what you have tried to solve this problem
I read the guide on this but I still couldn't figure it out.


Please specify what version of Turing you are using

4.1.1
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Jun 15, 2012 3:04 pm   Post subject: RE:Help With Music In Turing Please?

Read the guide again. Ask specific questions.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
whatwhat




PostPosted: Fri Jun 15, 2012 4:55 pm   Post subject: Re: RE:Help With Music In Turing Please?

Tony @ Fri Jun 15, 2012 3:04 pm wrote:
Read the guide again. Ask specific questions.


In the guide it said that the file must be in the same directory as the program. I am new to this so I'm not sure where to put the file. I tried to put the file in the turing folder and then tried to run it with this program just to see if the music would work
process DoMusic
loop
Music.PlayFile ("branden3.wav")
end loop
end DoMusic

fork DoMusic
var x, y, clr : int
loop
x := Rand.Int (0, maxx)
y := Rand.Int (0, maxy)
clr := Rand.Int (0, maxcolor)
Draw.FillOval (x, y, 30, 30, clr)
end loop
I changed the branden3.wav with the name of my mp3 file and nothing happened.
Crying or Very sad
Amarylis




PostPosted: Fri Jun 15, 2012 4:58 pm   Post subject: RE:Help With Music In Turing Please?

Turing has, historically, not been the best for MP3 files. Also, the same directory just means that the music file needs to be in the same folder as your code file
poll262




PostPosted: Fri Jun 15, 2012 6:01 pm   Post subject: RE:Help With Music In Turing Please?

Also instead of putting the Music.PlayFile in a loop you could us Music.PlayFileLoop instead
Tony




PostPosted: Fri Jun 15, 2012 7:04 pm   Post subject: RE:Help With Music In Turing Please?

I recall there being problems if the music file is too large and/or comes with DRM. Try a variety of different music files.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
copthesaint




PostPosted: Sun Jun 17, 2012 9:02 am   Post subject: Re: Help With Music In Turing Please?

Copthesaints Lan music server: Download
It helps a bit to improve your programs speed, however this music player can only be opened in another window and it still takes up alot of the cpu
whatwhat




PostPosted: Sun Jun 17, 2012 11:48 am   Post subject: RE:Help With Music In Turing Please?

I changed it to WAV and it worked so thank you guys Very Happy

I was also wondering if you could post a video in turing? Like a short clip, in turing or in an external movie player like VLC?

I just tried putting a picture in it and I tried a lot of the ways on here, I tried using a gif and jpg but it keeps saying picture could not be created.
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: