concept type dur in category chuck

appears as: type dur
Programming for Musicians and Digital Artists: Creating music with ChucK

This is an excerpt from Manning's book Programming for Musicians and Digital Artists: Creating music with ChucK.

In , you make two variables of type dur, which you initialize to different values. One controls the amount of time the sine wave is making sound , and the other controls the sound off time ; this silent time is often called a rest by musicians. In , you use in-place variable arithmetic to change the frequency of twinkle so you can use it for the second pair of twinkle2 notes; for musicians and physicists, this musical interval of 3/2 is called a perfect fifth. In you turn the oscillator on and off again, advancing time using your dur variables, to play the next note.