Modify Midi Echo script to include off/on mode or bypass?

T_Jordan_Composer
T_Jordan_Composer Member Posts: 2 Newcomer

Can some one assist me in modifying the "Midi Echo" script so that it includes a simple off/on knob like in the "Arpeggiator" and "Unisono - Portamento". An enable/disable button would do as well. I have watched several tutorials and attempted multiple script modifications but have not been able to figure out how to include this. Thanks!

Best Answer

  • EvilDragon
    EvilDragon Moderator Posts: 1,022 mod
    Answer ✓

    It's pretty simple. Open the script editor, then you will notice a line set_ui_height(4). Right after that line, add this:

    declare ui_switch $Power
    make_persistent($Power)
    

    Then, scroll down and find the line that says on note. Right below that line, add if ($Power = 1). Now scroll down until you find the line that says on release. Before that line you have a line that says end on. Before that line add end if.

    Done!

Answers

  • EvilDragon
    EvilDragon Moderator Posts: 1,022 mod
    Answer ✓

    It's pretty simple. Open the script editor, then you will notice a line set_ui_height(4). Right after that line, add this:

    declare ui_switch $Power
    make_persistent($Power)
    

    Then, scroll down and find the line that says on note. Right below that line, add if ($Power = 1). Now scroll down until you find the line that says on release. Before that line you have a line that says end on. Before that line add end if.

    Done!

  • T_Jordan_Composer
    T_Jordan_Composer Member Posts: 2 Newcomer

    The man, the myth, the legend! Your solution and expanation couldn't have been simplified any better. Working perfect. Thank you Mario Kruselj a.k.a. EvilDragon.

Back To Top