Please enable JavaScript to use CodeHS

Coding + Music

Coding + Music is a mini-course that introduces students to the basics of coding through music! In this block-coding course, students investigate how code can be used to create and enhance music by building programs that generate beat patterns, chord progressions, and musical sequences with visualizations.


The entirely web-based curriculum is made up of a series of learning modules that cover the basics of creating music. Classes can complete the entire mini-course, or individual lessons in the form of playlists. Each lesson should take a single one-hour class period. The entire course should take about 10 hours.

Every lesson is made up of short video tutorials, example programs, quizzes, programming exercises, challenge problems, and unit tests. Students write and run programs in the browser using the CodeHS editor.

Programming Environment: Students write and run music programs in the browser using the CodeHS editor. These experiences will be hosted on the CodeHS website so that they can keep a running portfolio of their creative projects, and easily share their programs with the world.

Who is it for?

Coding + Music mini-course can be taught as a standalone course or alongside one of our other computer science courses. This course is designed to be an exploratory course that introduces students to coding. Teachers do not need programming experience to teach these units, but they should be willing to explore and learn to code alongside their students.

What do you Learn?

Below is a summary of the material covered in each unit:

Module Description
Introduction to Coding in Music:Students are introduced to the JavaScript block coding environment. They learn how to write a program that plays their own 8 count beat pattern.
Coding in Music:Students will learn how to add chords, notes, and visualizations to their songs. For a final project, students create a full-length song with music visualization.

Try Out the Course!

Enroll in the full course and try it out for yourself!

View Full Course

Additional Resources

Take a look at the lesson plan for the first lesson in the course.

View Sample Lesson Plan

Here is a student handout about making beats with music.

View Sample Handout

Here is a one page overview of the Coding + Music mini-course.

View Course Overview


Interested in teaching Coding + Music with CodeHS? Tell us more by filling out this form and we'll get in touch.

Bring to My School View Full Course