09.12.2012 Views

The Kyma Language for Sound Design, Version 4.5

The Kyma Language for Sound Design, Version 4.5

The Kyma Language for Sound Design, Version 4.5

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Scripts<br />

OK, now <strong>for</strong> a verbal explanation of what this expression does. A six second ramp is triggered whenever<br />

both inputTrigger and (1 - !TimeLeft asLogicValue) are greater than zero. This only happens<br />

when the amplitude envelope exceeds the threshold and the ramp has not been triggered within the last<br />

six seconds. <strong>The</strong> actual output (and the value of !TimeLeft which gets fed back into this expression) is<br />

one minus the ramp function. So !TimeLeft goes from 1 down to 0 over the course of six seconds. And<br />

it cannot be triggered again until two conditions are met: one condition is that the ramp has had a chance<br />

to get to 0, and the other is that the amplitude of the input exceeds the threshold amplitude.<br />

See the tutorial called Algorithmic <strong>Sound</strong> Construction: Your Computer is your Slave on page 194.<br />

164

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!