[sdiy] MIDI Switch
The Old Crow
oldcrow at oldcrows.net
Fri Mar 15 21:47:13 CET 2002
On Fri, 15 Mar 2002, Andre Majorel wrote:
> 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
>
> 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);
> }
Easy for a PIC/AVR, etc. Can use something like PIC16F628 or its AVR
equivalent. (Actually, it could be done in a 12C508 8-pin part if
hardware uarts aren't desired).
Crow
/**/
More information about the Synth-diy
mailing list