Computer Science Canada

yo

Author:  Fukith [ Sat Mar 05, 2005 6:04 pm ]
Post subject:  yo

hey i checked all help tutorials but, my music file is not playing
its an apprentice theme song which is called "turing", which is a .wav file.... any suggestions?

Author:  Cervantes [ Sat Mar 05, 2005 6:24 pm ]
Post subject: 

Stop spamming. You'll get the help you need if you give us information on your problem. There could be a variety of reasons why the file isn't playing. How are we to know which is the reason when all you tell us is that it doesn't work?

Author:  ssr [ Sat Mar 05, 2005 6:31 pm ]
Post subject: 

cough
if just playing files
check the tutorial again
I learnt a lot from it
and one more suggestion
dont use "yo"
u will get all ur bits off
lol 8)

Author:  Token [ Sat Mar 05, 2005 6:43 pm ]
Post subject: 

why dont you just post your code so we can see what you've done wrong? it makes it so much easier to help if you give us something to work with, because it could be a number of things, you could have made the music process a procedire in stead, and there for it wont fork, or maybe your not even forking it at all (as bad as that sounds) just post the code so we can help you out

Author:  Flikerator [ Sat Mar 05, 2005 6:49 pm ]
Post subject:  Re: yo

Fukith wrote:
hey i checked all help tutorials but, my music file is not playing
its an apprentice theme song which is called "turing", which is a .wav file.... any suggestions?


Music.PlayFileLoop (" .wav")

Insert the filename there before ".wav", I already answered this question...

Author:  Fukith [ Sat Mar 05, 2005 7:20 pm ]
Post subject:  yea

yea that code doesnt work... and bits dont matter to me you can take.. well heres my code...
code:

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

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

Author:  mwachna [ Sat Mar 05, 2005 7:31 pm ]
Post subject: 

first...make sure the computer is not muted
second, where did you get this WAV file from?...if it was an mp3, use the mp3 file. You can't just simply change the extention of the file into a WAV file...its doesnt work like that.
And thirdly, make sure that the music file exists in the directory of turing.

-matt
-Go T-Cats-

Author:  Cervantes [ Sat Mar 05, 2005 7:35 pm ]
Post subject: 

Change
code:

Music.PlayFile ("Apprentice.wav")

to
code:

Music.PlayFile ("C:/WINDOWS/Desktop/Apprentice.wav")

assuming that's where you're desktop folder is.

Also, instead of going through two for loops just to change the colour of the background (bad idea. Takes way too much processing power), just put cls after your colourback.

Btw, in trying to find "Andrew Saggiorato", google coughed up a whopping one result:
google wrote:

Iona Junior Boys
... 185, 392, Kevin Martineau, Saint Charles Garnier, 26.54.25. 186, 1438, Andrew Saggiorato,
Chaminade College, 26.55.13. 187, 2118, Jordan Abrams, York Mills CI, ...
www.ofsaatrack2003.com/iojb04.htm

Author:  EvoX [ Sat Mar 05, 2005 8:13 pm ]
Post subject:  eh

hahaha at least i triedd.....

Author:  EvoX [ Sat Mar 05, 2005 8:18 pm ]
Post subject:  ok guys

guys im really confused.... the music file is still not working... im using windows xp, and i converted my apprentice file from a mp3 to a wav.... i also renamed it.. would this change any outcome?.. please someone help me!

Author:  MihaiG [ Sat Mar 05, 2005 8:24 pm ]
Post subject: 

any1 who gets banned must wait...if they get a new account dan will filter their ip as he said a few times in a main post Rolling Eyes

Author:  mwachna [ Sat Mar 05, 2005 9:15 pm ]
Post subject: 

damn yer dumb kid...i just told you not to convert it. If you can't even come up with a simple Q&A program, im positive you do not know how to properly convert an mp3 into a WAV. Just use the flippin mp3 file. Turing does support mp3 files.

-matt
-Go T-Cats!-

Author:  Flikerator [ Sat Mar 05, 2005 9:23 pm ]
Post subject: 

99.7%? :rolls eyes:

Author:  EvoX [ Sat Mar 05, 2005 9:26 pm ]
Post subject:  ...

i got it to work....

how can i place this text in the following background?

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

Author:  ssr [ Sat Mar 05, 2005 9:28 pm ]
Post subject: 

lol
got banned?

Laughing

Author:  Flikerator [ Sat Mar 05, 2005 9:42 pm ]
Post subject:  Re: ...

EvoX wrote:
i got it to work....

how can i place this text in the following background?

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


You asked this in two threads, thats unnessisary...

Author:  mwachna [ Sat Mar 05, 2005 9:49 pm ]
Post subject: 

can someone lock on of these threads please?

-matt
-Go T-Cats!-

Author:  person [ Sat Mar 05, 2005 10:01 pm ]
Post subject: 

there is another thread on the same topic...lock one of them...please!!


: