Kyma Forum
  Kyma Support
  Scripting syntax

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

next newest topic | next oldest topic
Author Topic:   Scripting syntax
photonal
Member
posted 17 December 2010 10:30         Edit/Delete Message   Reply w/Quote

Bliss.kym

 
I'm trying out sounds with scripts and am failing at what seems like the simplest of hurdles; maybe someone can help me with the syntax? (I have been following examples in Kyma X revealed).

For example, I understand that in:

| r |

r := Random newForKymaWithSeed: 1413.
10 timesRepeat: [
res start: 0 s freq: (r next * 50 + 20) hz]

res would be referring to the res sound upstream from the initial script.

but how is it possible to refer to another sound which is further upstream, i.e. further to the left?

I have been trying for example (with a named variable):

| r |

r := Random newForKymaWithSeed: 1413.
10 timesRepeat: [
res start: 0 s freq: (r next * 50 + 20) hz]

sample start: 0 s loopEnd: (r next / 1000)


OR the following with a named hot variable:

| r |

r := Random newForKymaWithSeed: 1413.
10 timesRepeat: [
res start: 0 s freq: (r next * 50 + 20) hz]

self controller: !LoopEnd setTo: (r next / 1000) atTime: 0 s.

but I just can't get the syntax right.

Any help very welcome.


IP: Logged

photonal
Member
posted 17 December 2010 11:23         Edit/Delete Message   Reply w/Quote

Bliss4.kym

 
After some further trials I discovered that a script referencing a particular sound has to be immediately behind that sound.

Am I right in that or is there another way to access all sounds from the right most script?

Anyway this little sound turned out to be quite nice:

IP: Logged

SSC
Administrator
posted 17 December 2010 11:25         Edit/Delete Message   Reply w/Quote
quote:
but how is it possible to refer to another sound which is further upstream, i.e. further to the left?

If you ctrl+drag a copy of that upstream Sound into the Inputs field of the Script, then you can refer to it by name in your script. (Make sure the name follows the usual variable-naming conventions, e.g. starts with a lower case letter).

IP: Logged

SSC
Administrator
posted 17 December 2010 11:26         Edit/Delete Message   Reply w/Quote
You're too good! In the time it took me to type an answer you had already figured out the problem!

IP: Logged

photonal
Member
posted 17 December 2010 11:28         Edit/Delete Message   Reply w/Quote
My apologies ;-)

and thanks!

IP: Logged

photonal
Member
posted 18 December 2010 09:43         Edit/Delete Message   Reply w/Quote

Bliss.zip

 
Working example!

So nice to have little breakthroughs

Also included is a Live 7 set which drives the Kyma sound.
Produces some glitchy (when loop end is reduced for example) / arpeggiated sounds.

[This message has been edited by photonal (edited 18 December 2010).]

IP: Logged

CharlieNorton
Member
posted 18 December 2010 12:23         Edit/Delete Message   Reply w/Quote
Thanks Chap!

This is an area I really want to start digging at. I am following and learning.


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