Chapter 3. Arrays: arranging and accessing your compositional data

This chapter covers

  • Declaring and initializing arrays
  • Retrieving and modifying data in arrays
  • Storing different types of data in arrays
  • Using arrays to control musical parameters for a song

Now that you’ve been introduced to the power of the Standard library and Math utilities, you’re going to learn one more important thing in order to make the coding of your melodies and compositions much easier and more expressive and to allow you to create longer songs without excessive typing. This chapter covers arrays, which are super-powerful mechanisms that allow you to make collections of data that you can use for all sorts of things. Arrays are fundamental to how almost all computer ...

Get Programming for Musicians and Digital Artists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.