setattribute hold?

Discuss problems and solutions.
Post Reply
vmy
Newbie
Posts: 10
Joined: 20 Oct 2013 16:06

setattribute hold?

Post by vmy »

hi all,
im sorry about this, but seems to be another stupid question from a newbee :oops:

i want to controll the hold attribute from a multiball. i made a script in a switchobject: setattribute(MultiBall,'hold',x);
but it doesnt run?

when i want controll the grid all is running well. isnt hold an attribute? or cant i controll it?

i also test it with 3 balls in the mutliball and try this script: setattribute(MultiBall,'hold[0],x);
only to controll the hold attribute of the first ball. doesnt run :cry:
Attachments
holdautomation.jzml
hold automation with switch
(6.07 KiB) Downloaded 46 times
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: setattribute hold?

Post by Softcore »

What exactly were you wishing to achieve with "hold"?

Hold is to be used in conjuction with "ephemeral" mode (ball disappears after stopping touching the multiball object).

So, what do you want essentially for the multiball to do?
vmy
Newbie
Posts: 10
Joined: 20 Oct 2013 16:06

Re: setattribute hold?

Post by vmy »

hi,
i understand hold so that its like a holdpedal. i test it in conjunktion with my kyma sound.
when i set hold=1 i only must touch a multiball one time and the sound is running the whole time. then i change the hold value to 0 and the sound is off. some times its good because i must control some other settings with both hands. and i must take off my finger from the multiball .
so i want a button to toggle between hold mode on and off.

greetings
vmy
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: setattribute hold?

Post by Macciza »

No
As always, check in the manual if you aren't sure . . .

So try MultiBall.hold=x; in your script . . .
Remember those fields for hold etc also take expressions, so the other option is to simply put Switches.x (or whatever) in the 'hold' field . . . .

Again, (sorry) check the manual - the standard way of addressing members of variable arrays/vectors is Object.var[n] i.e. MultiBall.hold[2] or Switches.x[2] . ..

Try that and see how you go . . .

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]
vmy
Newbie
Posts: 10
Joined: 20 Oct 2013 16:06

Re: setattribute hold?

Post by vmy »

ok. just have solved the problem. its very easy.
i only must choose Switch.x[0] in the behavious section of the multiball and all runs perfectly.

thanks for the help

greetings
vmy
Post Reply