Kyma Forum
  Kyma Support
  Stuck on page 148

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

next newest topic | next oldest topic
Author Topic:   Stuck on page 148
Andrew
Member
posted 10 August 2010 16:59         Edit/Delete Message   Reply w/Quote
Hello forum, this is my first post and I'm half way through Kyma X Revealed.

On page 148, referring to the Sound 'Basic live Capture and Looping', I'm stuck on this:

"Play 'Basic live capture & looping' and describe the function of each of the VCS
widgets. Based on their behavior, see if you can decipher the meaning of the
expressions in Frequency, LoopStart, and LoopEnd. (HINT: In CapyTalk, sign
tells you whether a value is positive or negative. It equals -1 for negative num-
bers, 1 for positive numbers and 0 for the value 0."

Referring to the latter challenge I cannot find anything with 'sign' used in these parameters at all and so do not understand the hint.

Thanks

Andrew


IP: Logged

keph
Member
posted 10 August 2010 17:14         Edit/Delete Message   Reply w/Quote
In the example, it is referring to the Frequency field in the Sample sound labeled 'play back from RAM' (see page 147, image on the right).

In this particular sound, a negative Length value is meant to reverse the looping element. One way to achieve that is by multiplying the playback Frequency by -1.

So while the absolute value of Length determines the LoopEnd point, the 'sign' value is -1, 0, or 1 and determines whether the sample playback is forward or backwards.

[This message has been edited by keph (edited 10 August 2010).]

IP: Logged

Andrew
Member
posted 11 August 2010 09:19         Edit/Delete Message   Reply w/Quote
Thanks for the explanation. The picture on p147 does not match what I see on my screen in the frequency field, which on my screen is:

default * (2 * ( 0.5 - (!Length le: 0)))

with no 'sign' to be seen in the expression. I think this is where my confusion comes from. Perhaps the Sound has been changed since the book?

Thanks

Andy

IP: Logged

keph
Member
posted 11 August 2010 10:42         Edit/Delete Message   Reply w/Quote
Ah, that is much different and seems that the example sound was changed.

I could be wrong but I think the reason it was changed was eliminate Length = 0 resulting in multiplying the frequency to zero.

IP: Logged

SSC
Administrator
posted 11 August 2010 11:36         Edit/Delete Message   Reply w/Quote
default * (2 * ( 0.5 - (!Length le: 0)))

To deconstruct this expression:

(!Length le: 0)

is 1 when !Length is 0 or negative and it is 0 when !Length is positive.

( 0.5 - (!Length le: 0))

For positive !Length is 0.5. And for 0 or negative !Length, it is -0.5

(2 * ( 0.5 - (!Length le: 0)))

For positive !Length is 1. And for 0 or negative !Length, it is -1.

As Keph was saying, you could get a similar result using a more compact expression:

default * !Length sign

except that, when !Length is 0, your Sample would go silent.


IP: Logged

Andrew
Member
posted 11 August 2010 17:56         Edit/Delete Message   Reply w/Quote
OK I'm still very new to all this- at this stage it's fine for me to know I was correct in being confused!

Thanks

Andy

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