Kyma Forum
  Kyma Support
  Capytalk and Smalltalk

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

next newest topic | next oldest topic
Author Topic:   Capytalk and Smalltalk
cristian_vogel
Member
posted 28 March 2006 01:49         Edit/Delete Message   Reply w/Quote
I was a bit stuck yesterday in my Kyma Study Tank, when trying to write code in a script sound/module.

I have concluded, correct me if i'm wrong, that in a script object, like within MIDIVoice, I can't use Capytalk functions - nextRandExp etc.. I can only use Smalltalk functions ( Random new etc ) - Also , in a script, how can I read dynamic values, like !sw01 ?

I was experimenting with an iterative delay line script, and I'm confused about the "start: 0 s" within an iteration.... Is this the command that sends the message to the receiver? ... If so, I wanted to make it so that when a button is pressed in the VCS, it rebuilds the delay line, with new random values for the durations... But I can't figure out if the iteration builds the delay line just once , at 0 s, or if it is continuosly building it, and if so, what rate does it step through the loop?


IP: Logged

yenorom
Member
posted 28 March 2006 04:04         Edit/Delete Message   Reply w/Quote
You set dynamic values in a script in the same way as in a sound !DelayTime etc. I don't think you are restriced to just smalltalk commands, capytalk can get used.

IP: Logged

cristian_vogel
Member
posted 28 March 2006 09:00         Edit/Delete Message   Reply w/Quote
thats weird then - If i try to use capytalk expressions in a Script sound, the compiler calls them undeclared variables - i'm confused

IP: Logged

yenorom
Member
posted 28 March 2006 12:13         Edit/Delete Message   Reply w/Quote
It should work. I just added this to the script in the prototypes and it worked fine

x := 1 bpm: !BPM nextRandom.
remember and declare x at the top of the script.

Double check your syntax?

IP: Logged

cristian_vogel
Member
posted 01 April 2006 09:16         Edit/Delete Message   Reply w/Quote
yes, it was my syntax - its the dots and the spaces that keep getting me!

One day, I'll be able to write some script code and it compiles first time, i'm sure of it...

Another question... How can I send a value from sound to another - like I have declared an audio level in the Scale field of one sound, and assigned it in that field to a variable L . How can I display ?L on either a VCS fader ( for readout ) or send it to another sound , so I can affect other elements according to it?

IP: Logged

yenorom
Member
posted 01 April 2006 10:01         Edit/Delete Message   Reply w/Quote
Have you tried a SoundToGlobalController?

IP: Logged

cristian_vogel
Member
posted 02 April 2006 12:55         Edit/Delete Message   Reply w/Quote
how would i use that SoundToGlobalController in this scenario then? I don't really understand how to send a message to an object that is somewhere else in the Sound .. its the basics i know, but i'm learning

IP: Logged

yenorom
Member
posted 02 April 2006 13:17         Edit/Delete Message   Reply w/Quote
I'm not too clear on what exactly you are trying to do.

SoundToGlobalController allows you to assign anything to a variable, some capytalk, the output of another sound etc. The variable you have assigned to then shows up in the vcs and all the other sounds can then use that variable like it was any other vcs fader.

Is that what your after?

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