Workshop · 2026–27
Making Music with Python
Write Python that plays notes, melodies, and scales, then render a short tune of your own as an audio file.
- Room
- Room 304
- Experience
- A little Python helps
The workshop proposal recommends some Python, about the level of an intro CS class. Day 1 walks through installing everything.
- Leads
- Daksh G., Haripranav Y.
- Meetings
- 5 meetingsRound 1: Oct 27, 2026 to Jan 26, 2027. All dates
What it's about
Code is a quick way to sketch music: change one line and you hear a different melody. You'll write Python using SBMusic, the music library the workshop uses, with SuperCollider, free software that turns code into sound.
Day 1 covers the music theory you need: what a note name like C4 means, how a melody is built, and what makes a scale major or minor.
Day 1
- Install Python 3, SuperCollider, and SBMusic
- Your first note: C4 is middle C, and length is counted in beats
- Turn a sequence of notes into a melody
- Scales: C major and the whole-step / half-step pattern
- Make a short tune starting from C4, E4, G4, and C5
Planned lessons
From the Day 1 slides. Plans can change during the year. Later lessons haven't been published yet.
Meeting 1 · Notes, melodies, and scales
- Setup
- Notes and durations
- Melodies
- Major and minor scales
- Your first tune