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

Need some ideas for sequencer MIDI output module

Discussion in 'Building With Reaktor' started by John6455, May 11, 2013.

  1. John6455

    John6455 Member

    Messages:
    102
    Hi, I have been busy building a step sequencer based off the monoliner which comes with reaktor. Its all going well, and Ive sorted out most bugs on my own but I need some ideas for this issue. While the sequencer is monophonic, the way it outputs midi notes is "polyphonic" in that notes can sound for longer than a single step, therefore having multiple notes sounding at once. This works fine except for repeated notes.

    I use separate H envelopes for each note, all merged into the P and G inputs on a midi output module.

    Following on from what I said above, different notes work fine, repeated notes dont. Here would be the events reaching the midi out, then the note messages:

    Note 1 on...........Note 2 on......Note 1 off...............Note 2 off

    This event order works fine, however with repeated notes:

    Note 1 on...........Note 1 on......Note 1 off...............Note 1 off

    In this example you can see that the second Note 1 will be cut off very shortly after it has sounded.

    Does anybody have ideas how to interface something in the final operations of the sequencer, where repeated notes would then cancel out any current hold time and then trigger the new hold time so that it would look something like this:

    Note 1 on...........Note 1 on.........................Note 1 off

    Keep in mind its a mono sequencer, where at the end of the sequencer, for each step it outputs a pitch value, velocity and hold time (prior to going to the midi out)
     
  2. colB

    colB NI Product Owner

    Messages:
    3,969
    The MIDI specification makes a big deal about the rule that a note off must be sent for every note-on that has been sent... so it's against the rules to sent 3 note-on's, then just one note-off.

    I think you need to look at Omni-off mono mode (mode 4). You can specify a number of midi channels, and voices. That way you can manage overlapping note-on/off with same note number by sending them on different channels.
     
  3. John6455

    John6455 Member

    Messages:
    102
    Thanks for that. Ive added a polyphonic section to the end. Its a 16 step sequencer, so 16 channel polyphony. Im trying to figure out a way to send an "off note" for each new "on note" (before the new "on note") if one of the channels currently has an equal pitch value and positive gate value, ie a note in an "on" state. After some sleep.