Welcome to %s forums

BrainModular Users Forum

Login Register

Performance problem using a 16x16 matrix

I need help on a Patch
Post Reply
hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 27 Nov 2013, 01:25

Hello,

I run into a problem and I'm not sure if this is a problem of the nature of the matrix or of me :-)

I build a matrix with 16x16 and setup a cursor to walk with a counter, triggered by the beat, from 1-16. Works. I see the cursor running within the beat. Then my idea was using the "cursor out" pin to feed a "set/display array" with 16 outputs. Perfect. Gives me a mirror of the cursor row to the pins.

Then I tried to create a midi object for only one pin. The cursor and the output have a big gap. I see the cursor moving and after a short time I hear the sound. It is not a problem of the latency of the soundcard. Playing with a keyboard over Usine with 2 VST's is normal without any remarkable latency.

The problem: The original clock and the output of the array have a delay aprox. 30ms. inside Usine. I put both signals in the oscilloscope and build in a "data delay" . To see both signals (the clock vs. he output of the "SetArray") overlapped I must add 30 ms. to the clock.

Is it possible, that matrix/array consume a lot of bloc cycles? This would explain the problem. But I'm not sure, that's why I ask.

And how to solve this?.... I need to sync display and output to a central clock, with this delay this would not work live.

Maybe the idea using the cursor is a failure. The alternative is to mirror the matrix in an array and scan the rows direktvia scripting :-) But the cursor is such a nice functionallity... :-)

Peter
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

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

Unread post by nay-seven » 27 Nov 2013, 08:41

can you upload an example patch to test...?

hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 27 Nov 2013, 10:54

Sure. Next days. I must build a sort of a reproducer, cause it is a part of bigger patch. Sorry was late in the night, forgot to make a patch :-)
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 27 Nov 2013, 19:11

Reproducer

So, here's a reproducer. You'll find two switches.

Switch "CLOCK->2xSampler -> Out" (Preset 0)
Activates a route Clock -> 2x sampler (Metronom) :-)
You hear that both samplers are triggered at the same time. You hear an intervall, the tones are played simultainious

Deselect switch and press "1 CLock to sampler 1 Clock via matrix to sampler" (Preset 1)
You hear the problem. One sampler continues playing by the metronome and the second sampler should be fired, when the cursor goes into the column. Fact, the trigger through the route is delayed 1 beat and is out of sync, you hear two different tones. (So it is not computed within a bloc?)
In the osc. you can see, that the spike of the metronom and the beginning of the rectangle have a small gap. This is what you hear.

But my main problem is, why is the tone triggered, when the cursor leave the column, not when it is entered.

Hope I could show the problem :-)

Peter

P.S.: I'm not sure wheter the preset is stored in the patch or not ....
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

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

Unread post by nay-seven » 30 Nov 2013, 19:32

try to add a 0 to 1 module after the outlet val 15 of the array

the clock send 01
the array out send 0and 1

hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 01 Dec 2013, 00:32

Hello!

Thanks for you help!

This solves problem 1!

Problem 2, the delay problem is still outstanding. -> I changed the patch and uploaded it again. The delay sounds like delay of some msec (sound like spanish castanets :D:-)). There is one interessting effect: You can change the delay if you do some usine actions eg. on the big split window slider. Then the grows a little bit and after action is finished it flips back.

When the first switch is activated, you can hear how it should sound. Both samplers should be triggered at the same time.

If switch 2 is activated, the delay occurs.

I've made some experiments with the "bloc delay and interval", but I can't figure out a solution to get "both tone at the same time on the clock". I plan to add later a midi trigger from outside instead of the clock, so a delay can't be a workaround.

second version of the repoducer

Peter
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests