Page 1 of 1

Posted: 15 Oct 2009, 12:13
by ethnix73
I've uploaded a simple add-on i needed to improve my live workspace.

It's a simple patch with 1 midi in and 4 midi out. Simply choose towards wich midi out the midi flow will be pass through...

Changing the selection will send an "all note off" message to the four midi out.

In the midi tools section

Posted: 15 Oct 2009, 14:41
by bsork
Nice little patch. Smart using the Dispatcher instead of a lot of A=Bs!

Posted: 16 Oct 2009, 22:54
by amiga909
nice use of the dispatcher indeed :)

added 2 small scripts that do something similar:
switch1-2: 1 input, 2 outputs
switch2-1: 2 inputs, 1 output
they both make use of bsorks note closer technique once again. means: hanging noteOffs will be passed thru (if the input or output is not selected)

Posted: 16 Oct 2009, 23:15
by nay-seven
cool ethnix73 !
always useful !

@ amiga909 , what about the same for data...?
could replace toggle +dispatch in some case

Thanks guys

Posted: 18 Oct 2009, 10:24
by amiga909
fixed a bug in the 2-1 midi switch script (same notes on both midi inputs could interfere).

@nay: hmmm.. we could try it. but i fear i couldnt make a script faster than the non-script module way.
for data streams a C++ or Delphi module would be better.
senso said about this:
"C++ is 20x faster than script language but for midi manipulation it's not a problem: the midi rate is generally few midi events per second. Scripting does a good job."

Posted: 18 Oct 2009, 10:37
by nay-seven
ok ! no problem...;-)

thanks for the fix..

Posted: 18 Oct 2009, 11:25
by senso
just for info: the script engine of the V5 will be 50x faster than in the V4.
It's not an hallucination ... really 50x faster....

Posted: 18 Oct 2009, 13:22
by amiga909
senso wrote:just for info: the script engine of the V5 will be 50x faster than in the V4.
It's not an hallucination ... really 50x faster....
??? wow!!!
any more info on this? just wondering cause i believe scripts are interpreted by the native machine code and thus necessarily slower?
however its done, v5 will surprise us in so many ways, i dont want to bother u with questions of what ought to be impossible :)

Posted: 19 Oct 2009, 09:16
by bsork
50 times faster!?! Yet another reason for me to being lazy with delving into Delphi or C++ user modules... :)

Posted: 19 Oct 2009, 11:19
by martignasse
bsork wrote:50 times faster!?! Yet another reason for me to being lazy with delving into Delphi or C++ user modules... :)
Well...cant 'not answer' one this one ;)

You'll not be surprised if the SDK go a step ahead too :)

Not especially in term off speed (apart Usine core optimisation), but there will be some very deep end cool functions to access Usine core engine... don't know if all of them will be reflected in script.

Anyway, it will not change the complementarity between script (easy access and development) and SDK (deeper, faster, harder but complete freedom on what you code).

And on the script side... you are a master and we need you :cool: