Welcome to %s forums

BrainModular Users Forum

Login Register

Midi out dispatcher

Discussions about add-ons, announcements
Post Reply
ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 15 Oct 2009, 12:13

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
Seb.Dub

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 15 Oct 2009, 14:41

Nice little patch. Smart using the Dispatcher instead of a lot of A=Bs!
Bjørn S

amiga909
Member
Posts: 324
Contact:

Unread post by amiga909 » 16 Oct 2009, 22:54

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)

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 16 Oct 2009, 23:15

cool ethnix73 !
always useful !

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

Thanks guys

amiga909
Member
Posts: 324
Contact:

Unread post by amiga909 » 18 Oct 2009, 10:24

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."

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 18 Oct 2009, 10:37

ok ! no problem...;-)

thanks for the fix..

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 18 Oct 2009, 11:25

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....

amiga909
Member
Posts: 324
Contact:

Unread post by amiga909 » 18 Oct 2009, 13:22

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 :)

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 19 Oct 2009, 09:16

50 times faster!?! Yet another reason for me to being lazy with delving into Delphi or C++ user modules... :)
Bjørn S

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 19 Oct 2009, 11:19

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:
Martin FLEURENT - Usine Developer - SDK maintainer

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests