fade code make Z wrong ¿¿¿¿

Discuss Lemur and share techniques.
Post Reply
oran-outan
Newbie
Posts: 39
Joined: 18 Dec 2011 17:30

fade code make Z wrong ¿¿¿¿

Post by oran-outan »

hi

On multislider I generate random value or specified random like "drunck". the random list values is sequenced with a clock. at each pulse a new random list...
next I do interpolation to have linear changed, like a crossfade between the 2 values.
this run.
but I'd like to ignore random value if the slider is -0- or if I touch it ( z is 1). the way is ; I touch fader (z is 1) random is ignore and I can move fader on 0... random is not assign on this fader ( but to all the other).
My problem is, with my code, the last fader I touch stay on 1 !!! is like on radio, the last stay 1.

If I don't used the interpolation code, z comeback to 0 normally when I remove my finger, but if I used it I have the problem...

on link the template...

thanks for your help
0-0
Attachments
rndTest.jzml
(26.78 KiB) Downloaded 73 times
oran-outan
Newbie
Posts: 39
Joined: 18 Dec 2011 17:30

Re: fade code make Z wrong ¿¿¿¿

Post by oran-outan »

hi

after some test I think it's a bug, or I have missing something ? or don't understand something on the z function ?

I have try with a lfo and have the same : if I touch multislider, z is like radio, the last slider I touch stay on 1. Z value don't back to 0 when I leave my finger...
if I touch several sliders, whose I have touch stay on 1...

I join my test with lfo, you can try with other example... here the same problem...
of course if I enable the lfo, z is good...

thanks if you can reply me if my code is wrong ? or if it's effectively a bug...

I used IOS 5.0 on iPad 1 with Lemur 4.

best
0-0
Attachments
LFotest.jzml
(9.93 KiB) Downloaded 74 times
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: fade code make Z wrong ¿¿¿¿

Post by Macciza »

Hi Oran

I've had a bit of look but not fully delved into it.
Not sure what is going on - hope to have a bit more of look over the weekend.
Something is going on in the scripting that is causing it - because it does 'z' properly in isolation . . .

Will have a look in to it and get back to you . . .
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: fade code make Z wrong ¿¿¿¿

Post by Macciza »

Hi
It appears the scripted changing of the x values is causing the problem somehow.
If you do not update the x values whilst z is active it is ok
Maybe you can get it to detect your z and only update the other values
But remember z is an array so ' (z==0) ' will return an array and if'ing won't act as expected

Will pass it through to the dev team to review
Hope that helps
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
oran-outan
Newbie
Posts: 39
Joined: 18 Dec 2011 17:30

Re: fade code make Z wrong ¿¿¿¿

Post by oran-outan »

Hi

Yes, 'z' run properly if is isolated and if he's not update at each frame (or at a fast time).
thanks to remember me about 'z' as array, for used it correctly on code...

0_0
Post Reply