![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: Capytalk and Smalltalk |
cristian_vogel Member |
![]() ![]() ![]() 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 |
![]() ![]() ![]() 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 |
![]() ![]() ![]() 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 |
![]() ![]() ![]() It should work. I just added this to the script in the prototypes and it worked fine x := 1 bpm: !BPM nextRandom. Double check your syntax? IP: Logged |
cristian_vogel Member |
![]() ![]() ![]() 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 |
![]() ![]() ![]() Have you tried a SoundToGlobalController? IP: Logged |
cristian_vogel Member |
![]() ![]() ![]() 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 |
![]() ![]() ![]() 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 |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.