Click to See Complete Forum and Search --> : Background music scripts
Romekk
04-19-2003, 11:29 AM
I need some help from someone with my website:
http://users.pandora.be/guerilla_tactics/
1. the loop is not running smooth (the file is perfectly a loop when played in cool edit)
2. I want to let the visitor choose which background music plays
I was given this website:
http://simplythebest.net/scripts/javascript_125.html
... but it doesn't work:
http://users.pandora.be/guerilla_tactics/test.htm
anyone?
This line:
midiList = new Array("","mijn%20documenten/Romek%20Website/Passions.mp3","mijn%20documenten/Romek%20Website/Creative%20resources.mp3","mijn%20documenten/Romek%20Website/Zero%20point%20energy");
Seems to be pointing to your local directory. It should be something like:
midiList = new Array("","http://users.pandora.be/guerilla_tactics/Passions.mp3","http://users.pandora.be/guerilla_tactics/Creative resources.mp3","http://users.pandora.be/guerilla_tactics/Zero point energy");
They have to point to your files, and all %20s are actually URL-encoded spaces.
Romekk
04-19-2003, 05:58 PM
Yoh Jona:
I tried what you said but still no sound.
Maybe the script only applies for midi format?
So I tried with those three files in midi format ...
The first one works! Problem is ... it plays a totally different song? The song it must play can be heard on my homepage ... now let the other one play (Passions it's called) on the testpage --> wtf is that about???
I just export the song in Reason (the music program) as a midi file instead of a wave file
And the other two give no sound at all ... I'm loosing hope :(
Romekk
04-19-2003, 06:00 PM
SOrry, I said something wrong:
The first one doesn't play at all on the web. It only does when I choose Preview in Frontpage ..
Okay, I'll work on it, but I suggest you take out the spaces and rename the files. Instead of spaces, use underscores (the _ things).
Romekk
04-19-2003, 06:08 PM
Jona, it works now
http://users.pandora.be/guerilla_tactics/test.htm
You were on the right track, but the whole link was needless,
so just: Passions.mp3, etc. was enough
Just one problem remains: The loops don't play smoothly! (even though they play smooth in cool edit pro when you loop them)
How come?
That error occurs only when your loop isn't completely "looped." That's all I can say. Try shortening the end of it or something. There is no "flaw" in the Web page's music speed.
Romekk
04-19-2003, 06:39 PM
You are right, I have found the problem;
when you convert the perfect looped wave file to an mp3 format, a small piece is added at the end
so I tried instead of converting it with a normal program, to save the wave file as mp3 in Soundforge ... but the same thing happens! that little piece is always added
Romekk
04-19-2003, 06:45 PM
I mean it is added in the beginning
Sorry, I know a lot about Web development, and a lot about music programs and stuff, but that looks like a problem out of my range. Sorry...
Romekk
04-20-2003, 06:32 AM
thanks anyways!