The MIDI Forum

  1. Paolo Farinelli
  2. MIDI Software
  3. Wednesday, 20 January 2016
  4.  Subscribe via email
I tried to apply the java script from this site : http://www.midijs.net
but it works only for few files ( I don't know why)
Have anybody solved a similiar problem? Thanks a lot for any suggest
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Unless you need more than playing a MIDI file, the HTML5 audio element should be enough. There is no need to use JavaScript to play MIDI, and the 90's websites were already playing MIDI as background sound, without loading any JavaScript. You may have a look here: HTML/Elements/audio (http://w3.org/wiki).
Comment
There are no comments made yet.
  1. more than a month ago
  2. MIDI Software
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks Yannick, Your posts on several topics have been very helpful and we really appreciate your attention to detail in your responses.
THE MIDI ASSOCIATION (TMA)
The community of people who work, play and create with MIDI
Comment
There are no comments made yet.
  1. more than a month ago
  2. MIDI Software
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello,

The ability to play a MIDI File in a browser depends on the browser and the OS.

The HTML5 <audio> element depends on the local MIDI file player (Windows Media Player or Quicktime, for example) to play the file. The QuickTime MIDI file player that was formerly part of the Mac OS no longer exists, so anyone using a Mac running 10.4 or later (I think) can't use the <audio> element to play MIDI files in a browser.

According to the midi.js website, their solution uses the Web Audio API to play the MIDI file, which requires a browser that supports the Web Audio API (Safari does not, and Chrome on iOS does not). The website says it will fallback to "conventional plug-in methods", but that won't help someone whose browser and/or OS doesn't provide any method for playing a MIDI file.

Since you say your problem is you can only play some files and not others, it doesn't seem like your particular configuration (browser and OS) is likely to be the problem, but if you let us know your configuration, maybe someone here with a similar configuration can provide some assistance.

Regards,

Forum Admin
MMA
Comment
There are no comments made yet.
  1. more than a month ago
  2. MIDI Software
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
You NEED to use JS if you need advanced control for track solo/mute, instruments, effects, etc. Look to advanced MIDI player example.

You can select from thousands of instruments, example consists of link to al used libraries.
Comment
There are no comments made yet.
  1. more than a month ago
  2. MIDI Software
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.