Welcome to %s forums

BrainModular Users Forum

Login Register

Multiple data routing

I need help on a Patch
Post Reply
ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 01 Apr 2009, 18:38

I've got a problem, i'm not able to resolve:

I've got a data stream (for example 35, 42 and 47). They can arrive in my patch nearly at the same time. Each values are routed to a different data outlet ( for example 35 to out 1, 42 to out 2, 47 to out 3). No problem with this, i've been able to do it with a counter and a dispatch module...

But the same values arrive a second time, with a different order. How can i send these values to the same data output as the first ones?
Seb.Dub

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

Unread post by senso » 01 Apr 2009, 19:10

put them in an array and try to use the 'sort-array' module?

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 01 Apr 2009, 19:53

I've tried to do it this way, and it didn't worked the way i wanted...I'm going to try again...
Seb.Dub

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

Unread post by nay-seven » 01 Apr 2009, 21:06

what about a
=
and a
pass event flow

ex :
if A = 35 , pass to out 1....
if B = 42 pass to out 2

?

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 01 Apr 2009, 21:18

I've tried also nay-seven...
But i start to believe that it does not come from my subpatch
Seb.Dub

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 01 Apr 2009, 21:26

I forgot to say that i've got to different kind of data out...The first flows goes to the first set, and the second flow to the second set of data out.

Setting A=B with the block parameter on seems to solve the problem i was encountering.

Thanks for your help

When my patch will be ready, i will post a midisampler with polyphony.
Seb.Dub

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 03 Apr 2009, 20:57

I have not been able to solve the problem entirely. Here is a screenshot of the subpatch to be able to play the midi sample with polyphony:

Image


One "midi filter" (up in this image) filters note on, and the other one note off.

This subpatch is linked to three piano roll (or more). The three "play" data outlet to the inlet "play" of each piano roll, and the same for the 3 "stop" outlet to the 3 "stop" inlet of the piano rolls. Pitch is treated outside of this patch with some "change scale module"....

I'm not able to play chords and i doesn't understand why!!! Do you see another way to do this?
Seb.Dub

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 05 Apr 2009, 12:25

I've found what's wrong...

The problem is coming either from the midi in or the midi filter module.

If you play a triad chord (i've put a counter to observe this):
- the outlet "send" from the midi filter module does not always send three "impulses".
-the outlet "receive" from the midi in seems to react in the same manner than the midi filter.

I have activated the unpack fonction but it did not solve the problem

I've set global speed to the lower settings possible in asio set up.

Do you encounter the same problem fellow usiners, or does it come from my midi hardware?
Seb.Dub

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 05 Apr 2009, 14:48

... So Ive test for debugging:

sending trial chord from live , just simple midi in module, i can catch only 2 notes max.

tested as well unpack and lowest bloc calculation, seems to confirm the pb....

bmoussay
Member
Posts: 130
Contact:

Unread post by bmoussay » 05 Apr 2009, 23:06

Hi,

Maybe you shoulc try with the "midi dispatcher" script, to dispatch your polyphonic message into monophinic ones as soon as it enters the patch. Then you simply deal with each mono message to achieve what you want.
Hope it can help.
Regards,

B.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 07 Apr 2009, 22:56

thx bmoussay will have a look!

ethnix73
Member
Posts: 604
Location: France, Caen
Contact:

Unread post by ethnix73 » 07 Apr 2009, 22:57

The midi dispatcher doesn't seem to work for my need :(

thanks anyway Bmoussay
Seb.Dub

Post Reply

Who is online

Users browsing this forum: No registered users and 101 guests