[sdiy] MIDI Switch
Andre Majorel
amajorel at teaser.fr
Fri Mar 15 21:06:05 CET 2002
On 2002-03-15 11:01 -0800, Moho Disco wrote:
> I want to make a little box with
> a 3-way switch on it that changes
> incoming midi on channel 1 to
> channels 1, 2, or 3. I'd like to
> do it with only one MIDI in and
> one MIDI out. I don't want to
> make a switcher with 3 outs.
>
> Do you guys think this would be
> hard to make? And would I have
> to program an eeprom or something
> to accomplish this?
Doesn't look too hard. I guess you would need an UART and a
microcontroller that runs a code somewhat like this one :
int chin = 0;
int chout = 1;
for (;;)
{
unsigned char b = getc (midi_in);
if ((b & 0x80) && b < 0xf0 && (b & 0x0f) == chin)
b = (b & 0xf0) | chout;
putc (b, midi_out);
}
--
André Majorel <URL:http://www.teaser.fr/~amajorel/>
std::disclaimer ("Not speaking for my employer");
More information about the Synth-diy
mailing list