Kyma Forum
  Kyma Support
  controlling VCS parameters using scripting

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

next newest topic | next oldest topic
Author Topic:   controlling VCS parameters using scripting
robertjarvis
Member
posted 20 January 2012 11:12         Edit/Delete Message   Reply w/Quote

test3.zip

 
I have been playing around with the Csound prototype. In the uploaded zipped file (as with the original prototype) my example plays a Sound with its own VCS displaying parameters for !Attack, !Legato and !Release. What I would like to do is to be able to also control some or all of these parameters within the Sound's script so that the values will change for each note according to my list of numbers in my accompanying score text file, just like it does for the note pitch, duration, velocity and so on.

I would be grateful if someone could take a look at this and show me how it could be done for, say, the !Attack parameter.

Thanks,

Robert

IP: Logged

cebec
Member
posted 20 January 2012 13:09         Edit/Delete Message   Reply w/Quote
Wait a minute -- Csound prototype? Is this a custom score interpreter or something not included in X.82?

IP: Logged

robertjarvis
Member
posted 20 January 2012 13:25         Edit/Delete Message   Reply w/Quote
Its in the prototypes (under Scripts) and goes under the name of "CSound Score to MIDI Script.

IP: Logged

cebec
Member
posted 20 January 2012 13:30         Edit/Delete Message   Reply w/Quote
Thanks!

IP: Logged

SSC
Administrator
posted 20 January 2012 18:29         Edit/Delete Message   Reply w/Quote
One way to add more parameters is to assign them to controllers in the MIDI Script. Outside the loop that reads each line, you first set the controller to its initial value:


self controller: !Attack setTo: 0.2 atTime: 0 s.

Then, inside the loop that reads the text file and updates a variable t for time:

[f atEnd or: [eCard]] whileFalse: [...]

you can update that controller each time a new value is read from the text file, for example:

self controller: !Attack setTo: (paramArray at: 7) atTime: t s.

You can create a controller for each parameter that is now in the VCS.


IP: Logged

robertjarvis
Member
posted 21 January 2012 09:23         Edit/Delete Message   Reply w/Quote
Excellent. That works.

Thank you.

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