concept scale in category chuck

appears as: scale, scale, scales, scales
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.

There are many musical cases where you might want to use a for loop, such as playing up the notes of a scale (next chapter) or sweeping gradually from one frequency to another by hitting all the frequencies in between. Here you’re counting up and printing integers.

You’ll now learn how you can use arrays with functions. Just as you passed UGens as arguments to functions, arrays are valid arguments as well. For example, you can define a function called arrayAdder that modifies one member (index) of an array (temp), to have a new value (add one to it). You’ll use this shortly to change the pitches of a note array called scale.

Listing 5.13. Using the arrayAdder() function to convert a scale from minor to major