Kyma Forum
  Kyma Support
  constructing hot values with single quotes

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

next newest topic | next oldest topic
Author Topic:   constructing hot values with single quotes
Phi Curtis
Member
posted 11 January 2009 18:59         Edit/Delete Message   Reply w/Quote
Hi,

I used a prefixer to duplicate a structure in a sound, and the id field in the prefixer uses '_2' as the suffix that I am constructing - so the resulting hot value looks like !HotValue'_2' (i.e with single quotes as part of the name). It was a pretty big structure that I duplicated and I went to some trouble to get the VCS organized, etc., so it is not an easy thing for me to change the suffix now.

The problem is that I now want to refer to one of the hot values constructed in this way elsewhere in the sound, and I am having trouble constructing it. If you type !HotValue'_2', it won't compile, and something like (!HotValue suffix2: '_2') actually compiles as !HotValue_2, not !HotValue'_2'.

Any suggestions?

thanks,
Phil

IP: Logged

SSC
Administrator
posted 21 January 2009 12:02         Edit/Delete Message   Reply w/Quote
I think if you put the single quote within single quotes, you can indicate that you want the single quote as a string. For example:

('HotValue', '''_2''') asHotValue

should generate the hot value you need. Alternatively, you could use:

!HotValue suffix: '''_2'''

IP: Logged

Phi Curtis
Member
posted 22 January 2009 01:19         Edit/Delete Message   Reply w/Quote
Thanks! I had tried putting the whole expression within quotes (as in ' '_02' '), but of course I needed to put the single quotes by themselves inside quotes.


IP: Logged

Phi Curtis
Member
posted 24 January 2009 14:10         Edit/Delete Message   Reply w/Quote
Hmmm, one problem is that I now want to generate a global controller that has single quotes in the parameter name (don't ask why - it's complicated). But if I put !AmpFollower'_1' as the GeneratedEvent parameter, I get a warning that says "The GeneratedEvent used in the SoundToGlobalController named "!AmpFollower'_1'" is an expression of one or more Event Sources. Please use a GeneratedEvent that is an Event Source directly.

I've never tried to construct a Global Controller name before. I guess it isn't possible?

IP: Logged

SSC
Administrator
posted 24 January 2009 16:11         Edit/Delete Message   Reply w/Quote
Does the following work?

('AmpFollower', '''_1''') asHotValue

IP: Logged

Phi Curtis
Member
posted 24 January 2009 18:57         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SSC:
('AmpFollower', '''_1''') asHotValue[/B]

No, that gives the same message.


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