Kyma Forum
  Tips & Techniques
  Script variables...

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

next newest topic | next oldest topic
Author Topic:   Script variables...
JackRosete
Member
posted 17 November 2006 16:42         Edit/Delete Message   Reply w/Quote
I would like to use a Script Sound to algorithmically generate a series of Analog Sequencers. However, I'm not sure if what I have in mind is possible. I would like to use something like this in the Script field:

1 to: !NumberOfSequencers do: [ i: | <stuff here> ].

So that I could add/remove AnalogSequencers on the fly, using a VCS fader, once the Sound is compiled...

Any ideas?

Thanks!

p.s. Am I right in assuming that the above approach doesn't work due to a Smalltalk/Capytalk clash?

[This message has been edited by JackRosete (edited 17 November 2006).]

IP: Logged

SSC
Administrator
posted 17 November 2006 18:48         Edit/Delete Message   Reply w/Quote
1 to: !NumberOfSequencers do: [ i: | <stuff here> ].

You cannot have a hot variable as the upper limit for a Smalltalk loop. Any Smalltalk code in a parameter field is compiled on the host computer *before* the Sound is sent to the Capybara.

What you could do instead is to create the maximum number of sequencers and then use hot variables as faders to bring them in and out of the mix.

IP: Logged

JackRosete
Member
posted 18 November 2006 05:49         Edit/Delete Message   Reply w/Quote
OK, I will try that instead. Yes, I assumed that was the problem with the code, I was just wondering whether there was an equivalent of do: in Capytalk, as I've noticed there are often Smalltalk/Capytalk equivalents such as at: and of: and so forth.

Thanks!

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