MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Scripting Questions >> Sending Midi CTRL messages from webpage
(Message started by: PaulF707 on Apr 3rd, 2010, 3:24am)

Title: Sending Midi CTRL messages from webpage
Post by PaulF707 on Apr 3rd, 2010, 3:24am
Hi

I've written a web based application that using JavaScript to look for specific key presses (using the document.onkeydown = getKey command) and then plays a midi file using the BGSOUND command.

The problem I have is that there is approx. 1/2 second delay between the key press and the midi file playing.
Each midi file is tiny (just 1 bar long with a string of MIDI Controller messages).

Could I use MIDIOX with Javascript to send the relevant midi controller messages direct from my webpage (without using a Midi file)? I'm guessing this would probably be quicker?
I currently use a database to store which midi files to play (and in what order), so I could (relatively) easily change this to store the relevant midi commands / strings to be sent.

I am fairly new to coding / developing, so if anyone has any example javascript codes out there that would send a series of midi contorller messages I'd be very grateful for a copy.

Many thanks in advance,



MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.