Reply To: Slider outputting a sequence of notes?

Home Forums General Using Ctrlr Slider outputting a sequence of notes? Reply To: Slider outputting a sequence of notes?

#13356
atom
Keymaster
    • Topics: 159
    • Replies: 2945
    • Total: 3104
    • ★★★★★

    You can’t (for now)

    Well not just using the properties, the NoteOn type sends notes but it modulates the velocity not the note number, and there is no way to modulate the controller number (the pitch of the note) using just the properties.

    You could do that in Lua by using this single line of code (you need to attach a new method to the slider on the event “Called when the modulator value changed”), this will send a Midi message of type NoteOn with the pitch set as the value of the slider and velocity set to 01.

    panel:sendMidi (CtrlrMidiMessage ({0x90, value, 0x01}),0)
    

    BUT, it should also be possible when using the SysEx type and just typing in the message as

    90 xx 01
    

    and that should generate a series of NoteOn messages with velocity 01 and the pitch beeing the value of the slider, but there seems to be a bug where a SysEx formula needs to start with “f0” and this might be an issue within the JUCE Library i use. I promise to have a deeper look at that amd report back.

    I just thought of another way without lua, you can add a MidiKeyboardComponent to the panel “Misc->uiMidiKeyboard” and link your slider to that. The procedure is dumb and i need to fix it but it will work:

    – add a slider
    – add a MidiKeyboard component and name it something like “midiKeyboard”
    – select the slider
    – set the property “If linked to a modulator property, witch modulator” to the name of the kyeboard component you created (midiKeyboard)
    – select View->Refresh property lists
    – re-select the slider
    – set the property “Modulator linked to modulator property” to “modulatorValue”

    that should be it, now your slider controls the MidiKeyboard and the value of the slider will cause the MidiKeyboard to trigger a sequence of NoteOn/NoteOff messages witht the pitch indicated by the slider. You can hide your MidiKeyboarad off screen if you like.

    • This reply was modified 10 years, 6 months ago by atom.
    • This reply was modified 10 years, 6 months ago by atom.
    Ctrlr