Page 1 of 1

Note counter like device to alternate between values

Posted: Sat Jan 05, 2019 4:14 pm
by valankar
Bitwig has a "Note Counter" modulator that alternates between values based on incoming notes:

https://www.bitwig.com/en/bitwig-studio ... ators.html

Is there a M4L device that does essentially the same? Basically, I would like to round-robin the chain selector in an instrument rack. Thanks.

Re: Note counter like device to alternate between values

Posted: Sat Jan 05, 2019 7:28 pm
by hoffman2k
The Borax object keeps count of the current "voices". So you could use it to achieve what you want. The only problem would be that the notes probably would be faster than you could change the chain selector with the API. The workaround to the problem requires a virtual MIDI driver, so you can send a CC from a device out of a Track to Live's remote mapping. (or delay the note output based on when the chain is changed)

Re: Note counter like device to alternate between values

Posted: Sun Jan 06, 2019 3:50 pm
by hoffman2k
Had a test, the API latency is between 1ms and 10.67ms on my system. Averages to about 3ms per note switch.
Although, I may be messing with something different than you asked for. Do you want an actual round-robin with a fixed amount of steps or rather something that follows the voices? (eg. Voice 1 is an operator, voice 2 a sampler on chain 2, etc..)
And are you just sending notes? Or want to use pitchbend, mod and aftertouch too?

Re: Note counter like device to alternate between values

Posted: Sun Jan 06, 2019 4:59 pm
by hoffman2k
https://we.tl/t-7TTsrzVBxQ

Quick and dirty. More of a proof of concept. Just passes the notes after selecting a chain.
Chain 0 does nothing. Voice 1 is Chain 1, Voice 2 is Chain 2, etc...
There's still a bug somewhere, because I get occasional hanging notes. (click Transport stop twice to stop hanging notes)
I reckon using a virtual MIDI port would be the way to go. The latency should be lower and consistent.

Re: Note counter like device to alternate between values

Posted: Sun Jan 06, 2019 5:52 pm
by valankar
Thanks for the device.

Actually what I meant was cycling through chains for each MIDI note. So for example, with 2 chains:

C3 -> Chain 1
C3 -> Chain 2
D3 -> Chain 1
...

Your device seems to be for polyphony, with the 2nd chain coming in only when 2 notes are pressed at the same time.

Re: Note counter like device to alternate between values

Posted: Sun Jan 06, 2019 6:10 pm
by hoffman2k
valankar wrote:Thanks for the device.

Actually what I meant was cycling through chains for each MIDI note. So for example, with 2 chains:

C3 -> Chain 1
C3 -> Chain 2
D3 -> Chain 1
...

Your device seems to be for polyphony, with the 2nd chain coming in only when 2 notes are pressed at the same time.
Yes indeed. You got me thinking about this feature and if I get it working, Aftertouch, PB and Mod should effect the last note played. Meaning you could record at least 3 dimensions of an MPE controller in a single clip.
I once made a round-robin rack before the MFL days, though you had to set the sequence in advance and it progressed if you played C1.
The Rack was set up to output MIDI, but you could always add it inside an instrument Rack instead if you want different instruments on the chains.

http://covops.dreamhosters.com/uploads/ ... 16.adg.zip

Re: Note counter like device to alternate between values

Posted: Sat Jan 26, 2019 8:31 am
by valankar
This is another example of what I'm looking for:

http://blamsoft.com/rack-extensions/pol ... stributor/

It has a random mode that can select a different device for each note.

Re: Note counter like device to alternate between values

Posted: Sat Jan 26, 2019 11:41 am
by chapelier fou
I am working on such a voice distribution system with several modules. Hopefully I will share soon, so be patient !