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

How can I set range for two different block outputs?

Discussion in 'REAKTOR' started by mbira, Nov 2, 2016.

  1. mbira

    mbira NI Product Owner

    Messages:
    114
    A picture is worth 1,000 words-How can I make the top Pitch CV out only send when pitches are C-0 through C-2 and the bottom Pitch CV out only C-2 through C4? Any help would be greatly appreciated!

    Screen Shot 2016-11-01 at 10.18.44 PM.png
     
  2. Brett Lavallee

    Brett Lavallee NI Product Owner

    Messages:
    1,024
    Use two "clippers" to filter out unwanted values. You have to use the debugger tool and hover over the connection to see what the output values are for those notes.
     
  3. mbira

    mbira NI Product Owner

    Messages:
    114
    Thanks for the reply! I'm taking a look at the output of the sequencer with the debugger. Ideally, I would like there to be a way on the front panel that the user can control the ranges by choosing the MIDI notes of the range for the min and max for each Pitch CV module. Is that possible using something like the clipper? Is there some sort of "value to midi note" converter that I could put on a knob to control the clipper?
     
  4. Brett Lavallee

    Brett Lavallee NI Product Owner

    Messages:
    1,024
  5. mbira

    mbira NI Product Owner

    Messages:
    114
    Thanks! The Pitch Clipper there almost does what I need it to do. However it takes notes below and above the threshold and just changes them to be the minimum or max note (and still plays them). I'm needing to omit notes that are outside of the range....
     
  6. colB

    colB NI Product Owner

    Messages:
    3,969
    You can't stop the outputs from sending pitches, but you can make a little module that closes the gate when the pitch is outside a range.

    I'm thinking something like this untested sketch: note limit.PNG

    The 0...120 -> 0..1 module is borrowed from the Util->NoteIn block, and just allows to use MIDI note numbers to specify the range, which it converts to Blocks pitch values.
     
  7. Brett Lavallee

    Brett Lavallee NI Product Owner

    Messages:
    1,024
    Screenshot (211).png
    I hope this one does the trick. It uses a split control to route the pitch and gates to either the upper or lower output. Gates outside of the range set by the Max and Min controls are filtered out.

    I used a GT module and a NOT as a switch, not sure if that's optimal but it worked.
    I also used the A/B quantize module from the blocks template.

    Screenshot (207).png
    Please let me know if there are any errors.
     

    Attached Files:

  8. mbira

    mbira NI Product Owner

    Messages:
    114
    Man-you guys are all so much smarter than me! colB-I am trying to build your example. I have a very newbie question-where do I find the object that you are using to feed those min and max values into the core cell-oh wait I think it's a "value"? Those input looking modules that I guess are just integers that you can hard code?

    Brett-your example is freaking awesome! It totally works as a two way splitter. Not to sound pickey at all, but for my needs, I am hoping for a single stand-alone thing that will set the min and max range. That way I can use as many Pitch CV outputs as I want to control (and even have some pitch overlap if I want, etc). I'm digging into the module you just created and it's blowing my mind. Is it possible to get rid of the "split" one of the pitch and gate outputs? I feel silly even asking because you guys are awesome!
     
  9. colB

    colB NI Product Owner

    Messages:
    3,969
    They are 'constant's
    Built-in module -> math -> constant
     
  10. mbira

    mbira NI Product Owner

    Messages:
    114
    Awesome-thank you colB. I'm attaching my hacked version of removing the features from Brett's (much more elegant) solution. I can't even figure out how to make the panel smaller lol.
    EDIT: I'm deleting my attachment because I broke it somewhere during my editing....
     
    Last edited: Nov 3, 2016
  11. Brett Lavallee

    Brett Lavallee NI Product Owner

    Messages:
    1,024
    Just min /maxers? Ok try this then.
    Screenshot (213).png
    I hope it doesn't look confusing. I gave it knobs instead of mod-sliders in an effort to make it look nice. This is the minimum instrument size so I figured I would use the space.
     

    Attached Files:

    • Like Like x 1
  12. mbira

    mbira NI Product Owner

    Messages:
    114
    Works perfectly! Thank you so much!
     
    • Like Like x 1