December 2014
Intermediate to advanced
344 pages
9h 55m
English
This chapter covers
Now that you’ve had fun building a drum machine using the SndBuf UGen, it’s time to learn how to write and use functions. You’ve already used a number of functions, which we’ve also called methods, ranging from changing the .freq and .gain of oscillators, to using Std.mtof() for converting MIDI note numbers into frequencies, to generating random numbers using Math.random2() and Math.random2f(). All of these are examples of functions.
Often in writing programs you need to do the same types of things ...
Read now
Unlock full access