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

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
-
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, addif ($Power = 1)
. Now scroll down until you find the line that sayson release
. Before that line you have a line that saysend on
. Before that line addend if
.Done!
1
Answers
-
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, addif ($Power = 1)
. Now scroll down until you find the line that sayson release
. Before that line you have a line that saysend on
. Before that line addend if
.Done!
1 -
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.
0
Categories
- 9.1K All Categories
- 17 Welcome
- 395 Hangout
- 57 NI News
- 179 Tech Talks
- 935 Native Access
- 4.2K Komplete
- 524 Komplete General
- 960 Komplete Kontrol
- 1.6K Kontakt
- 423 Reaktor
- 134 Battery 4
- 230 Guitar Rig & FX
- 176 Massive X & Synths
- 176 Other Software & Hardware
- 2K Maschine
- 20 Sampling Room
- 2.2K Traktor
- 2K Traktor Software & Hardware