[sdiy] MIDI Switch

Moho Disco moho at mohodisco.com
Fri Mar 15 21:29:07 CET 2002


Buddy, you just pushed the "voluntarily
get annoyed by a newbie for a couple
days" button...

Thanks for the info, I'll be in touch
privately (unless anybody else wants
to know how to do this?)

Lava

----- Original Message -----
From: "Andre Majorel" <amajorel at teaser.fr>
To: <synth-diy at dropmix.xs4all.nl>
Sent: Friday, March 15, 2002 12:06 PM
Subject: Re: [sdiy] MIDI Switch


> 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