music not playing on webpage

K

kino1

One more query in all this, and another observation.
The second piece of code lets me name the piece of music.
The first piece gives it a number--something that Publisher apparently did.
I didn't list the music as numbers. It seems to have converted them. And
it's hard to know what's what!
So, the second piece of code, where I enter "my midi" works well because I
can simply cut and paste the name.
Now, to make it work on each page...
Thanks.
 
K

kino1

Hi, Mike.
Yes, that makes sense, and it's what I tried. It didn't work. The page
kept playing what I had put on the first page. In fact, just because
Publisher gave numerical names to the pieces, they aren't all different.
Many of them are the same, even though they have different numbers. In their
real-name formats, they are all different pieces of music.
Dang. Any other ideas? What you are saying, of course, makes perfect sense!
 
M

Mike Koewler

Kino,

If you edited the HTML code fragment and changed it to sound323.mid,
then uploaded the file to the server and it still plays sound266.mid,
then I suspect you need to refresh your page (Shift/F5) or maybe delete
that page from your server then upload the new page again.

Mike
 
D

DavidF

Kino,

When Publisher produces the html code and files, it makes copies of all the
graphics and images that are inserted into the Publisher file, and renames
them. I think that the same is true of *.mid files. I also think that if you
use the built-in Publisher feature to insert background music, it is for
every page in the Publisher file.

To workaround both of those issues, I would not use the built-in background
music feature in Publisher. I would instead create a subfolder on your site
to contain the *.mid files, say perhaps "music". Then I would modify the
code snippet Mike gave you by adding the code that would have been written
by Publisher's built-in feature, and changing the path to the *.mid file.
Try inserting something like this:

<bgsound
src="http://www.public.asu.edu/~aarios/magicalrealism/music/yourname.mid"
loop=1>

<embed
src="http://www.public.asu.edu/~aarios/magicalrealism/music/yourname.mid"
type="audio/mid"
autostart="true"
play="true"
loop="false"
hidden="true"

This is assuming that you upload "yourname.mid" to your website to the
"music" subfolder. You can put the "music" folder anywhere you want on your
site, but it seems more logical to put it at the same level in the directory
as the "2007objects" subfolder. Then you can easily point to the *.mid files
from any page on your site. I would keep it out of any "index_files"
subfolder, which will be overwritten when you update the page. Also remember
that the *.mid file must be uploaded before you could test the page on a
local computer.

I haven't tested this approach, but hopefully it will lead you to a
solution. If you can't get it to work, I guess you could resort to
individual files for each page with the different *.mid files embedded by
Publisher, but that seems very inefficient.

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top