Labels, banks and conditions

Hello all

 

Been playing about with the NG project today, its great!

 

I’m driving a synth board which has two banks of sounds, first is General MIDI, so have set up an encoder to generate program change messages and display them on the LCD. All is fine.

Set up a toggle button and LED to switch to the other bank on (CC0=127), what is the best way to check the value of CC0 and display the correct voice?

 

Was thinking of something like an IFTHEN ELSE function but perhaps there is another way?

 

Thanks

 

S

Hi,

 

see also: http://www.ucapps.de/midibox_ng_manual_ngl.html

 

Following snippet should work:

COND_LABEL sndbnk
COND <127 "GM Bank"
COND_ELSE "Alt Bank"

 

 

This conditional label can be print with “^sndbnk”

Best Regards, Thorsten.

Thanks, but don’t think thats what I was after, there will be two lists of instrument names, one for each bank, what would be the best way to display the correct instrument name rather than just the bank name?

 

Thanks again

 

S

Ok, understood.

Something like “conditional events” are not available yet. Please give me some time to think about a good solution which also covers other topics on the Agenda.

E.g. it would not only be nice to print labels depending on values of certain elements, but also to send different MIDI messages.
E.g. this would allow to send different CCs when an encoder is incremented/decremented. Or it would allow to realize a “split point” for a MIDI keyboard.

It could work somehow like demonstrated in this snippet:

/edit: final solution:

http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Fcontrollers%2Fmidibox_ng_v1%2Fcfg%2Ftests%2Fconev_5.ngc

 

But also:

/edit: final solution: http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Fcontrollers%2Fmidibox_ng_v1%2Fcfg%2Ftests%2Fconev_4.ngc

 

 

Best Regards, Thorsten.

Before starting with the implementation, I would like to know if somebody has some additional usecases for the “conditional event” feature in mind?

 

Best Regards, Thorsten.

I started with the conditional events.

 

You case is already working:

http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Fcontrollers%2Fmidibox_ng_v1%2Fcfg%2Ftests%2Fconev_5.ngc

 

But the conceptional work isn’t finished yet - there are some other cases I would like to cover as well, but which can’t be handled by the current algorithm.

 

Best Regards, Thorsten.

Now released in v1.017 - have fun! :slight_smile:

 

Best Regards, Thorsten.