1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

share a list of numbers alongside instruments

Discussion in 'Building With Reaktor' started by playmodes, Oct 13, 2018.

  1. playmodes

    playmodes NI Product Owner

    Messages:
    118
    Hey masters!

    I'm working in a set of tools for harmonic and chord progressions,
    and i found the need to share lists of pitches (a list with maximum length 12, and each element is an int in the range 0-11) between .ism

    I discovered that i can't share polyphonic data between instruments (although i can see the list of polyphonic data with the debug tool),
    so i'm trying to find a way to multiplex this list into a single int that i can demultiplex on the other side.

    Anyone has some experience with that?

    I've seen some threads talking about this, using the partials framework and other kinds of black magic,
    but i couldnt find an example or method which is comprehensive enough for my level of understanding.

    any tip?

    thank you very much!
     
  2. mosaic_

    mosaic_ Guest

    You could use an iterator to send an event stream of the form [-1, a1, a2, a3...a12], where a1-a12 are your values of interest, all on one wire. On the receiving end you could set it up so that, after receiving a -1, the next 12 events have their values stored in some sort of memory.
     
  3. playmodes

    playmodes NI Product Owner

    Messages:
    118
    great, thanks Mosaic!

    I'm just working on it, and i could create the stream of -1 followed by my 12 values.
    I'm doing tests by storing this values in a table and everything looks right, but i have a doubt now....

    how do i, after receiving a -1, store the values (in an event table) properly indexed?
    or maybe it is better to reset a counter when the -1 is received and use the output of the counter to store the values in the sequence of voices?
     
    • Like Like x 1
  4. mosaic_

    mosaic_ Guest

    Bingo :D
     
  5. playmodes

    playmodes NI Product Owner

    Messages:
    118
    got it! thanks dude!

    i attach a little demo ensemble with the thing,
    maybe it can be useful for others some day....
     

    Attached Files:

    • Like Like x 2