Reply To: Demo panel for MIDI receive/transmit routines

Home Forums General Using Ctrlr Demo panel for MIDI receive/transmit routines Reply To: Demo panel for MIDI receive/transmit routines

#73218
dnaldoog
Participant
    • Topics: 4
    • Replies: 480
    • Total: 484
    • ★★

    It looks like sendMidiMessageNow doesn’t like receiving an empty string

    if string.len(memB:toHexString(1)) >0 then
    	panel:sendMidiMessageNow(CtrlrMidiMessage(memB))
    end

    Maybe the L() function is an alias for

    std::string LGlobalFunctions::stringToLua (const String &string)
    {
        return (string.toUTF8().getAddress());
    }

    Looks like it converts the string to utf8.

    Regards,

    Ctrlr