All times are UTC

 
 



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Note counter like device to alternate between values
PostPosted: Sat Jan 05, 2019 4:14 pm 

Joined: Tue Jun 15, 2010 4:20 am
Posts: 31
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.


Top
 Profile  
 
 Post subject: Re: Note counter like device to alternate between values
PostPosted: Sat Jan 05, 2019 7:28 pm 

Joined: Tue Jun 15, 2004 6:40 pm
Posts: 14652
Location: Belgium
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)


Top
 Profile  
 
 Post subject: Re: Note counter like device to alternate between values
PostPosted: Sun Jan 06, 2019 3:50 pm 

Joined: Tue Jun 15, 2004 6:40 pm
Posts: 14652
Location: Belgium
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?


Top
 Profile  
 
 Post subject: Re: Note counter like device to alternate between values
PostPosted: Sun Jan 06, 2019 4:59 pm 

Joined: Tue Jun 15, 2004 6:40 pm
Posts: 14652
Location: Belgium
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.


Top
 Profile  
 
 Post subject: Re: Note counter like device to alternate between values
PostPosted: Sun Jan 06, 2019 5:52 pm 

Joined: Tue Jun 15, 2010 4:20 am
Posts: 31
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.


Top
 Profile  
 
 Post subject: Re: Note counter like device to alternate between values
PostPosted: Sun Jan 06, 2019 6:10 pm 

Joined: Tue Jun 15, 2004 6:40 pm
Posts: 14652
Location: Belgium
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC

 
 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group