1 note multiple DOUT pins?

Hello, a mios/midibox newby here…

I need (or at least want) the ability for my midio128 to be able to turn on one full DOUT bank(8 pins) on a single note on command, while yet another set of 8 note values control the same 8 pins individually.

For example;

90 29 controls 1-2-3-4-5-6-7-8 all at once

90 30 controls 1

90 31 controls 2

90 37 controls 7

Any suggestions for a solution?

Regards,

Jerry

Hi Jerry,

I recomment to program this in C, at the http://www.ucapps.de/mios_c.html page you will find some examples, how to process the digital inputs and outputs.

If “90 29” should control 8 digital outputs at once, then you only need to add:

  if( evnt0 == 0x90 && evnt1 == 0x29 )
    for(i=0; i<8; ++i)
      MIOS_DOUT_PinSet(i, evnt2 == 0x00 ? 0 : 1);
[/code]





...to the MPROC\_NotifyReceivedEvnt hook







Best Regards, Thorsten.

Thorsten,

Thank you for the prompt response. Unfortunetly, I have yet to buy a C complier for the PIC processor and  I can not get SDCC  to compile anything, probably my error.

I will make a run at this in assembly.

Regards

I got SDCC… Windows :slight_smile:

Thanks a million!

Jerry