?
Solved

Midi sound not playing in html

Posted on 1997-11-28
4
Medium Priority
?
337 Views
Last Modified: 2013-12-27
Hello Experts:

I have my "Midiplay.exe" at two locations. Earlier, I was having problems with background noise  on a midi file when I opened the file. I rebooted, and the background sound was
eliminated. "Midiplay.exe" is at two locations because I thought I might have a path problem. If I simply open the file "Ballgam.mid", the sound is fine. If I open
"testmidi.html" [below], I  get no sound from "Ball.mid".

My Midplay.exe is located with it's associated programs at:

C:\Program Files\Audiosta\Midiplay.exe
and at
C:\Voyetra\Audiosta\Midiplay.exe

They are duplicates

This is my source coding:

<HTML>
<HEAD>
<TITLE>testmidi</TITLE>
<BODY BGCOLOR=FFFFFF TEXT=000000>
<H1>Hey Test Midi</H1>
<EMBED SRC="Ballgam.mid"
HIDDEN="True">
<BGSOUND SRC="Ballgam.mid">
</HEAD>
</BODY>
</HTML>

It is located at C:\Program Files\Coffeecup Software\
working\testmidi.html

I would appreciate any suggestions of how I might get my sound to work in an HTML file. I have other HTML files
with sound files on my disk. They do not produce sound as of now.

Lou
0
Comment
Question by:LouHall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Expert Comment

by:cutetech
ID: 1600839
Make sure the midi file is located in the same directory of the HTML file. And the correct format of your HTML file will be....

<HTML>
  <HEAD>
    <TITLE>testmidi</TITLE>
  </HEAD>
  <BODY BGCOLOR=FFFFFF TEXT=000000>
    <H1>Hey Test Midi</H1>
    <EMBED SRC="Ballgam.mid" HIDDEN="True">
    <BGSOUND SRC="Ballgam.mid">
  </BODY>
</HTML>
0
 
LVL 4

Accepted Solution

by:
johnt082197 earned 800 total points
ID: 1600841
Try this:
(Make sure Ballgam.mid is in the same directory your html file is)

<html>
<head>
<title>testmidi</title>
<bgsound src="Ballgam.mid" loop="infinite">
</head>
<h1>Hey Test Midi</h1>
<hr size="5" align="left" noshade width="80">
<em>Midi player</em><br>
<embed src="Ballgam.mid" align="baseline" border="0" width="50" height="15" autostart="true" loop="true" controls="smallconsole">
<hr size="5" align="left" noshade width="80">
</html>
0
 
LVL 4

Expert Comment

by:johnt082197
ID: 1600845
First, I can now say that you have a midi problem taht is independant from your HTML code. The option "autostart=true" means it should start automatically.
Second, to help you more with this, could I ask you to send me your entire site, along with GIF's, JPG's, and MIDI's all zipped up at: johnt@mail.club-internet.fr
Third, I'm gonna try to answer all your questions one ny one:
1) The console is just there for the user to be able to start / stop the midi from playing. It's not indispensable.
Instead of writing:
<hr size="5" align="left" noshade width="80">
<em>Midi player</em><br>
<embed src="Ballgam.mid" align="baseline" border="0" width="50" height="15" autostart="true" loop="true" controls="smallconsole">
<hr size="5" align="left" noshade width="80">
Write:
<embed src="Ballgam.mid" autostart="true" loop="true hidden=true" > 
In any case, the option "autostart=true" should automatically start the midi file.
2) The crash might not be caused by the midi player, but that's not 100% sure. First test, try to remove Norton from memory and see if you actually crash. If you do, uninstall your browser and reinstall it. If it still doesn't work, install another midi player.
3) As I said before. the option "autostart=true" should allow you to not clic on the play button for the sound to start.
4) Yes, i think you might need to get another midi player. Or at least start with reinstalling the one you currently have. As for the midi player you should get, I guess any would do.
5) The option "hidden=true" hides the console
6) Your code: <Embed SRC="Ballgam.mid" Width=1 Height=1>
does effectively hide the console, but try this instead:
<Embed SRC="Ballgam.mid" hidden=true>

0
 
LVL 4

Expert Comment

by:johnt082197
ID: 1600848
Thanks for the points :)
0

Featured Post

Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question