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

Using the value before last event

Discussion in 'Building With Reaktor' started by Jedinhopy, Jan 14, 2012.

  1. Jedinhopy

    Jedinhopy NI Product Owner

    Messages:
    821
    1. Tweak a knob to 26.
    2. Then tweak it to 19.
    3. The last event value is now 19.


    How do i track the previous event value number?
    Like a modified event watcher.

    Input sequence is this:
    Event 1 is 29
    Event 2 is 36
    Event 3 is 47
    Event 4 is 26
    Event 5 is 19

    Output sequence is this:
    Event 1 is 11
    Event 2 is 29
    Event 3 is 36
    Event 4 is 47
    Event 5 is 26
     
  2. herw

    herw NI Product Owner

    Messages:
    6,421
    that's problematic by tweaking a knob because how does the structure „know” when tweaking is at the end? The knob sends continous events when tweaking f.i. from 29 to 36.
    The solution is to overlay the knob by a (transparent) mouse area (40x40 px) which recognizes the end of tweaking by mouseOff. You have to add an event-corecell to store and output the last value by a latch module (z^-1 module). You can connect mouse area and knob by internal connections to see the change of the values on knob.
    There is a little „problem” because a mouse area isn't able to learn midi.
    Another solution is to use a XY-module with a transparent tga-skin.

    ciao herw
     
  3. Jedinhopy

    Jedinhopy NI Product Owner

    Messages:
    821
    The knob was just a example.
    The thing i want to build is:
    1. Take the voice with lowest pitch.
    2. Count the pitches between the lowest and nearest lowest note.
    3. Pitch bend from the voice with lowest pitch to the pitch near.
    4. It's called unison bending.
    5. Apply only pitch envelope and vibrato to the voice with lowest pitch.
     

    Attached Files:

  4. herw

    herw NI Product Owner

    Messages:
    6,421
    ahh - you get isolated values! very interesting problem.
    Which of the listed points are solved?
    If all, then you can simply use the Z^-1 module (Expert Macro\Memory)
    last value.jpg

    ciao herw
     
  5. James Nicholl

    James Nicholl Forum Member

    Messages:
    354
    You just need an order module and a value module.
     

    Attached Files:

  6. arachnaut

    arachnaut NI Product Owner

    Messages:
    3,106
    Very elegant
     
  7. Jedinhopy

    Jedinhopy NI Product Owner

    Messages:
    821
    Thank you. It works.