Need help with a midi script

Karllos Albert
Karllos Albert Member Posts: 2 Newcomer
edited October 2024 in Scripting Workshop

Q: Translation inserted by Moderator (translation by DeepL)

Hello friends I need help with a script, I need that when I play the Midi cc 65 button on the keyboard plays the note C1 ( C ), and always the value is 127

Community Code of Conduct - Please read before posting : Quote : Our community is currently only available in English. Please be advised that we retain the right to remove any posts in languages other than English.

Comments

  • theodorech
    theodorech Member Posts: 73 Member
    on init
    declare $event_id {custom event for the note triggering}
    end on on controller
    if ($CC_NUM=65) {if cc_num is triggered…}
    fade_out($event_id,100000,1) {…fade out any previous triggered cc 65 event…}
    $event_id := play_note(36,127,0,-1) {…play the new event}
    end if
    end on

    The above code will work only when the note is triggered using a midi button.

  • Karllos Albert
    Karllos Albert Member Posts: 2 Newcomer

    Thank you very much, it was exactly what I needed, thank you very much, you helped a lot, God bless you!!!

This discussion has been closed.
Back To Top