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

Username:   Password: 
 RegisterRegister   
 Music File
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Fukith




PostPosted: Sat Mar 05, 2005 3:49 pm   Post subject: Music File

Hello, I am doing a Apprentice game, but my aprentice file will not play... its on desktop and it is a .wav file.... any suggestions??
Sponsor
Sponsor
Sponsor
sponsor
Flikerator




PostPosted: Sat Mar 05, 2005 4:01 pm   Post subject: (No subject)

Music.PlayFileLoop ( ".wav" )
person




PostPosted: Sat Mar 05, 2005 4:34 pm   Post subject: (No subject)

Music.Play ("name.wav")

or

Music.Play ("location.wav")

if u only type the name it will look in the same folder that turing is saved to
Flikerator




PostPosted: Sat Mar 05, 2005 5:23 pm   Post subject: (No subject)

person wrote:
Music.Play ("name.wav")

or

Music.Play ("location.wav")

if u only type the name it will look in the same folder that turing is saved to


But with those you will have to use a process...
person




PostPosted: Sat Mar 05, 2005 8:37 pm   Post subject: (No subject)

so does the command u gave him

wat does ur last post mean??
Flikerator




PostPosted: Sat Mar 05, 2005 8:54 pm   Post subject: (No subject)

person wrote:
so does the command u gave him

wat does ur last post mean??

Music.PlayFileLoop will play music, like Music.PlayFile, except you don't need to fork it.

Try it out and you will see what I mean. Example;

code:

Music.PlayFileLoop("FileName.mid")
put "hi"


code:

Music.PlayFile("FileName.mid")
put "hi"


Make sure to actually play a music file or else it will look the same.
EvoX




PostPosted: Sat Mar 05, 2005 9:00 pm   Post subject: no

nop doesnt work
person




PostPosted: Sat Mar 05, 2005 9:03 pm   Post subject: (No subject)

1) maybe u can give us some of ur code?

2) y did u start another thread? obsessed with spamming?? (i was once like u *tear*tear*)
Sponsor
Sponsor
Sponsor
sponsor
Flikerator




PostPosted: Sat Mar 05, 2005 9:13 pm   Post subject: (No subject)

Nop doesnt work doesnt help you. Say why, the error you got. Probably just giving the wrong location for your program.


C:\Program Files\Turing\Crawling.mid

Thats a wrong directory. You need;

C:/Program Files/Turing/Crawling.mid

Reverse the slashes.
EvoX




PostPosted: Sat Mar 05, 2005 9:23 pm   Post subject: yess yess

Ok thanks it works.... music file was corrupt in turing..? o well

Next Question:

I want this in my back ground with the text... How do i do it?

code:

setscreen ("graphic,title: The Apprentice By: Andrew Saggiorato,nobuttonbar")
colourback (black)
cls

process DoMusic
    loop
        Music.PlayFile ("Apprentice.wav")
    end loop
end DoMusic

fork DoMusic

var word : string := " Do You Have What It Takes?"
var cola : int := 30
colorback (black)
for row : 1 .. 25
    for col : 1 .. 80
        put " " ..
    end for
end for
color (white)
for a : 1 .. length (word)
    locate (22, cola)
    cola += 1
    put word (a)
    delay (100)
end for

for decreasing i : maxy .. 0
    RGB.SetColour (1, 0, 0, i * (1 / maxy))
    Draw.Line (0, maxy - i, maxx, maxy - i, 1)
end for

for a : 1 .. 500
    var x := Rand.Int (0, maxx)
    var y := Rand.Int (150, maxy)
    var c := Rand.Int (16, 31)
    Draw.Dot (x, y, c)
end for

drawfillbox (0, 0, maxx, Rand.Int (25, 30), 7)
var hold : int
for i : 1 .. 200
    hold := Rand.Int (0, maxx)
    drawfillbox (hold, 0,hold+Rand.Int (10,20), Rand.Int (0, 100), 7)
end for
mwachna




PostPosted: Sat Mar 05, 2005 9:26 pm   Post subject: (No subject)

i don't mean to be a nay sayer....but the slashes DO go that way

its c:\ (see colen back slash)
and http://

different prompts use different signs...and just so we don't mix the ftp up
it ftp>
not ftp<

and I agree...that was not the brightest thing making a new thread...isn't this kid suppose to be intellegent?!

-matt
-Go T-Cats!-
mwachna




PostPosted: Sat Mar 05, 2005 9:27 pm   Post subject: (No subject)

you want what in the back ground?!
EvoX




PostPosted: Sat Mar 05, 2005 9:32 pm   Post subject: .

see how my program starts off by saying "Do you have what it takes?
I want that text and style in the stary building night background how can i do that?
mike200015




PostPosted: Sat Mar 05, 2005 9:40 pm   Post subject: (No subject)

isnt Music.Play to make your own music... like music notes... just like in the play command Question
mwachna




PostPosted: Sat Mar 05, 2005 9:41 pm   Post subject: (No subject)

code:
colorback (black)
for row : 1 .. 25
    for col : 1 .. 80
        put " " ..
    end for
end for
color (white)


are these suppose to be your "stars"?

you might want to rethink the way you did that...first the colour needs to be set before you try to write black on black...secondly...maybe you might want to try using maxcol and maxrow...its just easier....and thirdly...why are you outputting inviewable spaces?!
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 2  [ 21 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: