Welcome to %s forums

BrainModular Users Forum

Login Register

array help

I need help on a Patch
Post Reply
gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 05 Mar 2010, 10:17

In this patch I switch between 16 and 32 steps for the steps module. When I edit any of the steps in 16 step mode, they are carried over when switching to 32 step mode, and the same for the first 16 steps when in 32 step mode back to 16.
The problem in this patch is that in 16 step mode, everything works fine but in 32 step mode the first 16 steps go crazy and jump around all over the place when I try to edit them from the step module. The second 16 steps behave fine.

I am still wrapping my head around arrays so there's a chance I have done something really silly?
Anyways, if this screenshot is hard to understand, I can upload the patch.

Image

Also, as a super bonus I would like to be able to mirror the steps 1-16 to 17-32 but scaled +16 when switching to 32 step mode.
I've mostly given up on trying to do that for now, but if anyone has any quick idea?

Also, is there any way to pass only changed values from an array and filter out all unchanged values?

Eskadrone
Member
Posts: 13
Location: Vienna
Contact:

Unread post by Eskadrone » 05 Mar 2010, 11:23

This might be similar to a problem in this example: http://www.sensomusic.com/forums/upload ... Xample.pat
I try to roll a step modul with x-movement but it seems like the internal connection of the xy area interferes with the fed back processed events.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 05 Mar 2010, 14:04

@eskadrone: didn't looked at your patch but i suppose this should work:
note this are V4 roll modules but works same way with V5.
Image
@guru: can you upload the patch, ill try to have a look.

from what I feel pb comes that in any case in your patch, the array feeding back to the lines are with a lengh of 16,(here you add the two arrays, with is different than concating) whereas when you are in 32 mode, the input array should have a lengh of 32. if you feed lines wih a 16 lengh array while forcing step nb to 32, it creates the crasy loop. I would edit separately the 16x A and B parts, then concat them to get a 32 lengh array (so without shifting B part), if in 16 mode, add a set arraysize out of the 32 to 16, ro reduce lengh to first 16 steps.
gurulogic wrote:Also, is there any way to pass only changed values from an array and filter out all unchanged values?
nope.the workaround is to add a pass if change for each value of the array. this would be a nice add.

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 05 Mar 2010, 19:47

Here is my sub patch:

http://www.sensomusic.com/forums/upload ... e=Step.pat

edit:
ok, I figured it out finally. Got rid of the Shift Array and joined the 2 16 step arrays to Concat Array > Set Array Size(32) to 32 step input and a stop event from going back to the bottom Extract Array when only 16 step enabled...if that makes any sense at all?

I think this is going to turn into a nice little addon to share ...
(teaser: My "project name" is MLR-Like ;) )

The title of this thread should fit any further array questions I might have...thanks!

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 03:33

Is it normal that a Pass Event Flow module should store the values from an Array even after the input pin had been disconnected? This for sure caused me some hours of grief...:(

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 08:07

yes it's a normal, and imo cool behaviour, to let pass a value without needing to wire something on input.
maybe you can make pass a 16lengh array to "reset" the pass input with a fill array module of 16 lengh size with 0 value?

Q: Im not sure i catch what you want, is it controlling a bigger 32 array with a "window" of 16 lengh alternatively displaying 1-16- 17-32 parts to edit or switching from a 16 to 32 step display? or maybe even something else...
i will look the patch..

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 08:32

Hi 23fx23, I did already solve the last problem, but if you feel so inclined as to take a look at the latest version , I am having a hell of a time reversing the steps in 32 step mode.

I've uploaded the whole patch this time so you can have a better overview of what I am trying to accomplish. If you download Molar VST from http://www.xferrecords.com/molar/MolarPC.zip, there is a sample imbeded already so you can just load the patch and see without any fiddling around (Or just load a loop in the sampler)

If you navigate Empty Sub Patch > Step >, you will see the array mess. The step reversing is done in the two reverse step sub patches. Just the top one for 16 steps and both for 32 steps.


I have big hopes for this patch (x8;) ), hopefully touchscreen friendly Monome style play and maybe eventually even Monome control.. but I may need lots of help... or suggestions?

http://www.sensomusic.com/forums/upload ... xample.pat

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 08:46

ok i check this out! im also after an mlr style so that could be a good group reflexion.

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 08:51

Right now I am still only working on the loop twaeaking part of it...a lot of thinking about how to trigger the playback and functions with button presses..

err, I just noticed I have a serious scaling problem when switching existing 16 step sequence to 32 steps...

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 09:11

I don't know...I might be getting carried away. Perhaps it would be best to keep this idea as just a point and click loop mangling groovebox and start something else that focuses primarily on live loop performance...?
I was thinking I could do both in one package but it starts to look really complicated....

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 09:18

well i looked after and it's cool, nice idea, im a bit confused now to get the modification in the patch, but testing appart the swap array.

for the tool you describe your patch seems really good to edit/save preset, maybe an overide mode for live where you directly click on 16xbuttons or an area on wavform display for live mode, it should be doable to combine both...

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 09:31

hmm, yeah overide mode. I was thinking it would be cool to b able to "resequence" the loops MLR or Molar style , including the altered steps but to do that I need to modify the postion of the Step Module but that only works in Button Synchro mode.
I tried with any time a switch was enabled, the synchro changed to "button" and when no switch engaged the syncro changed top 'bar' but it didn't seem to work so good.
Maybe another option would be use a 4 channels sampler and as soon as you go "live", all the current sequences are resampled.?.... almost a good idea, maybe.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 09:33

well i supposed you already managed to swap an array, but it can interest some others...
Image
from what i feel when using one only array to edit and "feedback" at same time, the swap should be a pulse, not a constant 1 value,
try to think in "process" order , on a pulse it stops normal array, let pass the swap array to array edit, that continues loopin back, without being swapped anymore, as the pulse is then 0. if it's a swich, it's 1 so the preswaped reswap ect...

iguess pb comes from here, but putting a buton instead of your swich doesn't solve the pb in the patch, have to look deeper..

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 09:39

Sorry, I just realized my patch is a total mess. I should have tidied up a little and maybe labeled some things before asking for help..

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 09:47

he he no pb

so it seems to work now with your patch if you delete the stop module in both "reverse step" subpatch, and make a button instead of swich.

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 10:00

both stop modules in each patch? It doesn't seem to work for me yet.... I'll keep trying now I know the "button trick"
Also it's important all the steps and changes to steps are remembered both when reversing and when switching between 16/32..
It definately has made my head hurt .. :)

I also don't understand why the problem in the first place. Both "sides" of the 16 +16 array "should" do exactly the same thing so far as I can tell..

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 10:03

gurulogic wrote:hmm, yeah overide mode. I was thinking it would be cool to b able to "resequence" the loops MLR or Molar style , including the altered steps but to do that I need to modify the postion of the Step Module but that only works in Button Synchro mode.
yes, and it's the way to do it i think. generate a 0-16 clock fitting a bar, then the button/controls would reset the clock at desired position. ie if clock is at 8th step, in midlle and you press step 2 it resets clock to 2. ive done somesing similar using amodB module, have to retest that...

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 10:09

oh yup, in fact it works only in 16 mode, on 32 mode it swap each part one after the other..oops

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 10:24

Got it! Thanks to your button tip...this works both ways if I'm not getting too excited and have broken something important...

Image

now it's bed time...:)

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 10:25

http://www.sensomusic.com/forums/upload ... uruMLR.pat

here it seems ok now

edit: we post ed at same time! cool.look at mine it's simpler, swap only the last array before entering step.

bed time for me to :)

gurulogic
Member
Posts: 1019
Contact:

Unread post by gurulogic » 06 Mar 2010, 10:28

ok, thanks!

Edit,: nice!
Even though I beat you to the puch (by 1/2 second) , I couldn't have done it without you, and your way is better I think..
Thanks and have a good sleep!

Eskadrone
Member
Posts: 13
Location: Vienna
Contact:

Unread post by Eskadrone » 06 Mar 2010, 20:02

@23fx23: The Idea in my patch is to isolate x-movement and y-roll. The internal x-connection writes in next row before external roll happens. I have a solution in mind : detect x-move -make an array snap - do roll on snap - restore to step module. Will post when ready.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 06 Mar 2010, 22:12

ok cool let us see that!

Eskadrone
Member
Posts: 13
Location: Vienna
Contact:

Unread post by Eskadrone » 09 Mar 2010, 14:16

Ready. http://www.sensomusic.com/forums/upload ... y-roll.pat
It`s an x-roll actually.:) x-movement rolls, y-movement sets the step level. This adresses also my "thick fingers - small bars" problem.
It is much more reliable now but far from perfect so I will not post it under addons As the movement distinction block should come first a "display only" mode switching internal editing of would help. But maybe I`m blind here and there is a better workaround?

Post Reply

Who is online

Users browsing this forum: No registered users and 60 guests