pan based on MIDI note

robin746
robin746 Member Posts: 7 Member

I am attempting to pan the output of a sampler based on the incoming MIDI note. In the case of a piano, for example, I could put the lower notes to the left of the panorama, higher pitches to the right.

But I can't even figure out how to get a MIDI note number out of the polyphonic stream of data. The manual says that NotePitch "Outputs the MIDI note value of any note message received by the Ensemble" but instead Number displays an integer in the 400 range. Even if converted to mono using a Voice Combiner.

Would really like to understand this.

Comments

  • colB
    colB Member Posts: 1,060 Guru

    Divide the note pitch by 127 to get a value between 0 and 1, then use that to control the pan process

  • robin746
    robin746 Member Posts: 7 Member

    As I said, the numbers coming out of NotePitch are in the 400 range (e.g. 418, 436,…) and do not seem to represent MIDI notes. The ensemble is 8-voice.

  • colB
    colB Member Posts: 1,060 Guru
  • robin746
    robin746 Member Posts: 7 Member

    I am looking using the Numbers panel display and the cable debug tooltip.

    In mono the NotePitch gives the MIDI note number. But not when using polyphony. I am trying to extract the last note somewhere downstream, e.g. not immediately after NotePitch.

  • colB
    colB Member Posts: 1,060 Guru
    edited April 17

    if you are using a voice combiner, you're probably getting the sum of note numbers on all channels.

    It's hard to help further without knowing what you are trying to achieve and some sort of example of the problem.

    What I said in my first reply is exactly what to do in mono or poly. Getting visual feedback of some specific value from some specific voice is actually more tricky than panning each voice based on its note number (assuming you have the pan part already worked out)

     I am trying to extract the last note somewhere downstream, e.g. not immediately after NotePitch.

    I posted a simple macro to extract voice number for the latest allocated voice to the User Library a few years ago:

    https://www.native-instruments.com/en/reaktor-community/reaktor-user-library/entry/show/12639/

    You could use this with a from voice to grab the latest note pitch. Personally I might go with the simpler approach of having each vocie pan to its own note number

Back To Top