Kyma Forum
  Kyma Support
  Is is possible to assign ?greenVariables to checkboxes?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Is is possible to assign ?greenVariables to checkboxes?
ChristianSchloesser
Member
posted 04 November 2010 10:09         Edit/Delete Message   Reply w/Quote
Hello!

I have to create some encapsulated classes(Sounds) with use of the MemoryWriter module.
A custom Stereo and a 8 Channel MemoryWriter class.

So far it works and i also created the corresponding sample player classes....

even a nice Icons in PS...;-)

Now i want to assign a green ?variable to the checkboxes named Silent, Global and Cyclic ... so i can switch that too...(esapcially cyclic!)

But how do i assign a ?greenVariable to a checkbox? for use in scripts or my custom classes?

all the best
chris


IP: Logged

SSC
Administrator
posted 04 November 2010 10:21         Edit/Delete Message   Reply w/Quote
I think if you use a ParameterTransformer, then you can set the checkbox parameter to a green variable in the Transformation field.

Say for example your checkbox is named Reverse. Then in the Transformation field you could put:

snd doNotExpandFirst.
snd reverse isNil ifFalse: [snd reverse: ?reverse]

The value in this case would be a Boolean (true or false).

IP: Logged

ChristianSchloesser
Member
posted 04 November 2010 13:40         Edit/Delete Message   Reply w/Quote

ParameterTransformerProblem.kym

 
Hmm... the ParameterTransformer seams to work with some checkboxes but not for all.

For example in the ParameterTransformer Prototype itself ... it works with the SetLoop check box ... but not with the Reverse check box.

I did not get it managed to work with the MemoryWriter Cyclic or Silent parameters :-(

any idea...? Do these checkoxes may have internally different names? if yes are they documented anywhere?

All the best
Chris



IP: Logged

ChristianSchloesser
Member
posted 06 November 2010 15:05         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SSC:
I think if you use a ParameterTransformer, then you can set the checkbox parameter to a green variable in the Transformation field.

Say for example your checkbox is named Reverse. Then in the Transformation field you could put:

snd doNotExpandFirst.
snd reverse isNil ifFalse: [snd reverse: ?reverse]

The value in this case would be a Boolean (true or false).



Hi SSC!
I did not get it managed to work with the MemoryWriter Cyclic or Silent parameters :-(

any idea...?

Regards
Chris

[This message has been edited by ChristianSchloesser (edited 06 November 2010).]

IP: Logged

SSC
Administrator
posted 06 November 2010 23:16         Edit/Delete Message   Reply w/Quote

forChristianSchloesser.kym

 
Hi Christian,

I tried it out with Silent (on a MemoryWriter) and was able to create a user-defined class out of it (please see attachment). Was it giving you an error message or some other indication that it did not work?

Thanks!

IP: Logged

ChristianSchloesser
Member
posted 07 November 2010 10:20         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SSC:
Hi Christian,

I tried it out with Silent (on a MemoryWriter) and was able to create a user-defined class out of it (please see attachment). Was it giving you an error message or some other indication that it did not work?

Thanks!




Thanx. With ONE parameter it works fine.
But i would like to "transform" all of the 3 checkboxes of the MemoryWriter! So i can use them in a Stereo or 8 Channel MemoryWriter class.
That does not work for me here ... I tried with a single ParameterTransformer like this:

snd doNotExpandFirst.
snd silent isNil ifFalse: [snd silent: ?silent].
snd global isNil ifFalse: [snd global: ?global].
snd cyclic isNil ifFalse: [snd cyclic: ?cyclic].


... and i tried multiple ParameterTransformers in series. No luck :-(
any tip?

I think i can not see the forest for the trees :-)

Thank you so much.


[This message has been edited by ChristianSchloesser (edited 07 November 2010).]

IP: Logged

SSC
Administrator
posted 09 November 2010 17:04         Edit/Delete Message   Reply w/Quote

booleanVariablesForChristian.kym

 
Hi Christian, Somehow you and I are doing something slightly differently from one another with respect to the three Booleans and the ParameterTransformer because I could not get it to fail. Does the attached user-defined class work for you?

Does Kyma give you any error messages when you try to create your own using ParameterTransformer?

Thanks for your help!

IP: Logged

ChristianSchloesser
Member
posted 10 November 2010 11:01         Edit/Delete Message   Reply w/Quote

pictures.zip


StereoMemoryWriter.zip

 
quote:
Originally posted by SSC:
Hi Christian, Somehow you and I are doing something slightly differently from one another with respect to the three Booleans and the ParameterTransformer because I could not get it to fail. Does the attached user-defined class work for you?


yes your example works fine...

quote:

Does Kyma give you any error messages when you try to create your own using ParameterTransformer?
[/B]

No Errors. It simply ignored the new checkboxes...but now i found the problem! It was i kind of "signal flow" problem...i can t explain because the prototype works with a mixer too...

What i tried was to use one parameterTransformer for multiple MemoryWriters going into a StereoMix2 ... see picture(not_working.png).
That simply doesn t work, but gives no errors!?

If i attach the parameterTransformers directly to the MemoryWriters it works. see working.png ;-)
So now for the 8 channel version i try to script it!

Thank you so much for your help!
attached is a file with classes and icons... feel free to share/improve ...

all the best
chris



IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c