MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
General >> General Board >> wav file to trigger patch change
(Message started by: trainhawk on Jan 16th, 2005, 1:46am)

Title: wav file to trigger patch change
Post by trainhawk on Jan 16th, 2005, 1:46am
I would like to set up the following scenario:

When a wave file plays in Media Player I would like it to trigger a midi patch change in an external device.

I can do this manually with no problem, but lack the skills to take it further.

Anyone got any ideas??

Thanks in advance!!

Title: Re: wav file to trigger patch change
Post by Peter L Jones on Jan 16th, 2005, 4:53am
Do you mean when a specific wave file is played, you want a specific (i.e. matching) patch change fired?

It should be possible to knock something up in VB (maybe VBScript) that "knows" which patch to fire and lets you pick the wave file for playback - then sends the MIDI event and starts the wav file playing.  It could probably even be fed a list of pairs (wav file, patch number).

More than that I can't offer - I'm only just starting to dabble in Windows media programming... (and I'm using java, which probably isn't the best place to start, but java's my main goal...)

Title: Re: wav file to trigger patch change
Post by trainhawk on Jan 16th, 2005, 12:42pm
Yes, I want to trigger a midi patch change the is meant to match the wav file being played. More specifically;
I am building a speaker testing webpage. When a speaker photo is chosen it opens a new page with different wav file options specific to the type of speaker being tested. When one of these files are chosen I want the appropriate crossover patch to be loaded in an external unit. I can trigger it manually, but this requires the user to "know what they're doing". If it is automatic, any user can run the station.
I've been wrestling with VBScript, ActiveX, etc. without a whole lotta luck. (knothing a few years of schooling wouldn't fix) Thanks in advance for any help.

Title: Re: wav file to trigger patch change
Post by Peter L Jones on Jan 16th, 2005, 2:16pm
Oh... if the hardware is correctly configured (i.e. unit plugged into both MIDI and audio ports) and Windows is correctly configured (i.e. appropriate MIDI and audio ports are set as defaults) and you're talking about controlling this from a browser, then it should be a "simple" matter of using an HTML redirect to first trigger the MIDI file then the audio file.  (Might be tidier to use an IFRAME to hold the two trigger pages with the menu targetting the IFRAME.)



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