top of page

Creative Coding:

Simple Strategies for Incorporating Technology in the Music Classroom

Musical Puzzle Activity

Music and technology have an increasingly complex relationship. As our lives continue to be saturated with new and diverse forms of digital media, the ability to construct - or code - this media can be empowering for students and teachers while opening doors for creativity and learning. Coding allows students to claim agency when working with technology by illuminating the inner workings of the computers they use everyday. While it is also a fun way to explore sound and technology, connecting music with coding expands the music classroom to include cross-disciplinary learning while keeping a focus on musical thinking and creativity.

Screen Shot 2022-11-29 at 11.53_edited.p

Through composition-based activities, educators can incorporate computer coding into music classrooms while supporting creative problem solving and musical thinking. 

​

1. Creative coding augments musical knowledge​

Making music with computer code can supplement musical knowledge with essential technological knowledge. It can foreground the hidden functions of computers and make devices more malleable for creative expression. 

​

2. Creative coding extends musical engagement

Creative coding can open up new ways for individuals to be musical by highlighting the expansiveness of technology. By engaging with music in these new ways, musicians can also create interdisciplinary connections between domains. 

​​

3. Creative coding promotes problem solving in context

Individuals use logic as they engage with music and computer code simultaneously. When musicians troubleshoot technological problems with computer code, they are engaged in debugging that is happening in a real-world musical context. ​​

​​

4. Creative coding is aligned with current practice​

Music and computer code are already creatively used by many artists, designers, and engineers to express ideas and innovate musical thinking. ​

Sample Introductory Activity:
A Musical Puzzle

Use your problem solving skills to help the computer play this song in the correct order. 

​

Step 1: Navigate to this song in Scratch

Step 2: Click "See inside"

Screen Shot 2022-11-23 at 12.06.37 PM.png

Step 3: Use the "1", "2", "3", "Q", and "W" keys to listen to each segment

Step 4: Determine how to put this song in order!

Screen Shot 2022-11-23 at 12.13.07 PM.png

NOTE: The note numbers on each block correspond to the MIDI number and represent the keys on a piano.

CreativeCoding-1.pptx.jpg

Musical creativity requires both convergent and divergent thinking.

Convergent Thinking

To get started with convergent thinking when working with computer code, try to do the following: 

  1. Start with a prescriptive sequence.

  2. Focus on specific musical or technological skills. 

  3. Consider having a specific ending in mind. 

Try These Convergent Thinking Prompts:

1. Call & Response (Scratch)

Code at least one response to this phrase in Scratch. Aim to compliment the call and make your response the same length.

​

2. Creative Chords (TunePad)

Listen to the first chord (c1) and create 6 additional chords (3 edits and 3 extensions). Use the playNote function to create a sequence of 4 chords that sounds interesting to you.  Click "Remix" at the top to edit this template. 

​

3. Variable Groove (TunePad)

Determine which variable in this drum beat goes with which rhythm. Change ONLY the number assigned to each variable so this drum part is more interesting. Click "Remix" at the top to edit/rearrange this template. 

​

4. Building a B Section (EarSketch)

Using the A section as a guide, code a B section that compliments it. Click "Import to edit" then use the fitMedia function and the sound collection (on the left) to code the new section. Remember to click "Run" after you make changes.  

5. Exploring Effects (EarSketch)

This beat block repeats the exact same thing for 16 measures. Your goal is to create four interesting 4-bar sections. HOWEVER, rather than change the samples used (from the sound collection), explore different effects for each of the 4 sections (A section, B section, C section, D section). Right now the effects are all set to VOLUME, GAIN. Learn about the other effects in the curriculum here (right side of screen). Remember to click "Run" after you make changes.  

​

​

​

​

​

 

​

6. DIY musical puzzle (any platform)

Create your own version of a musical puzzle, just like this example. 

Screen Shot 2022-05-04 at 5.48.58 PM.png

Divergent Thinking

Musical creativity is both divergent and convergent. To get started with divergent thinking when working with computer code, try to do the following: 

  1. Keep activities open-ended.

  2. Make sure prompts can be addressed on multiple technological platforms.​

  3. Aim for a low-barrier to entry.

  4. Keep prompts short and concise. 

Try These Divergent Thinking Prompts:

  1. Create something that makes you want to dance.

  2. Create something that makes you want to lay down and relax.

  3. Create something that has two (or more) different perspectives or voices. (example)​

  4. Create something that reminds you of a movie. (example)

  5. Create something that reminds you of a significant event with your family.

  6. Create something that reminds you of nature.

  7. Create something that you think might come from an alien planet. (example)​

  8. Create something that sounds as if your favorite animal were a musician.

  9. Create something you know really well, but turn it to an opposite.

  10. Create something that sounds like the soundtrack to your morning routine.

  11. Create something that reminds you of an image that inspires you. (example)​

  12. Create a short story with a beginning that does NOT match the end. (example)​

  13. Create a short story about a tense or awkward moment.

Resources

IMEC 2023 - Handout

Mountain Lake Colloquium 2023 - Materials

​

Platforms that Bridge Coding & Composition

Scratch

TunePad

EarSketch

Sonic Pi

ChucK

​

Graphical Programming Languages

Max/MSP

Pure Data

​

Books with Lesson Ideas

Scratch Music Projects

The Music Technology Cookbook

Computational Thinking in Sound

Max/MSP/Jitter for Music: A Practical Guide to Developing Interactive Music Systems for Education and More

​

References

  • Dennis, B. (1970). Experimental Music in Schools. Oxford University Press.

  • Papert, S. (1980). Mindstorms: Children, Computers, and Powerful Ideas. BasicBooks.

  • Maeda, J. (2004). Creative Code: Aesthetics + Computation . Thames & Hudson Inc.

  • Webster, P. R. (2002). Creative Thinking in Music: Advancing a Model. In L. Willingham & T. Sullivan (Eds.), Creativity and Music Education (pp. 16–33). Canadian Music Educators’ Association.

Convergent & Divergent
Resources
bottom of page