♪Music, Built

Labs

One lab per part. Each is seeded, runs in seconds with nothing to download, checks its own result against the theory it illustrates, and ends with three things to change. They are written on Monochord: the instrument the series builds: one simulated string in Part 1, then instruments, a studio, and machines that listen.

pip install numpy scipy matplotlib
python -m videos.music.labs --list
python -m videos.music.labs 1 --show
python -m pytest -q tests/test_courses.py -k music
Lab 1 · One StringA string from beads: its pitch and its pluckLab 2 · Waves in AirAir: its speed from the gas law, and a bottle's noteLab 3 · The SpectrumTaking sound apart: the fast transform, and Gabor's limitLab 4 · The EarA listener in numbers: the middle ear, critical bands, the missing fundamentalLab 5 · ConsonanceConsonance, computed: where the valleys are, and how to move themLab 6 · TuningTuning, computed: where each system hides the commaLab 7 · Strings, Hammers and BowsStrings, computed: a loop, a stiff wire and a bowLab 8 · Pipes, Reeds and VoicesWinds, computed: a column of air and a valveLab 9 · Drums, Bars and BellsPercussion, computed: tuning things that nature tunes badlyLab 10 · Writing It DownNotation, measured: what each way of writing keepsLab 11 · Rhythm and MeterRhythm, counted: metres, syncopation and the ratios a listener expectsLab 12 · Scales and ModesScales, derived and counted: fifths, evenness and necklacesLab 13 · Intervals and ChordsChords, named, rooted and spacedLab 14 · MelodyMelody, counted: steps, leaps, chance and surpriseLab 15 · KeyKeys, found and mappedLab 16 · Two VoicesTwo voices, by rule and by countLab 17 · Four VoicesFour voices, counted and harmonizedLab 18 · ProgressionsProgressions, countedLab 19 · Chromatic HarmonyChromatic harmony, computedLab 20 · Canon and FugueCanons, solvedLab 21 · FormForm, measuredLab 22 · AnalysisAnalysis, computedLab 23 · Chant to PolyphonyChant to polyphony, computedLab 24 · The RenaissanceThe Renaissance, measuredLab 25 · The BaroqueThe Baroque, computedLab 26 · The Classical StyleThe Classical style, computedLab 27 · The Romantic CenturyThe Romantic century, computedLab 28 · New Scales, New RhythmsNew scales and new rhythms, computedLab 29 · Twelve TonesTwelve tones, computedLab 30 · Sound ItselfSound itself, computedLab 31 · TransformationsTransformations, computedLab 32 · The Geometry of ChordsThe geometry of chords, computedLab 33 · The Mathematics of Rhythm and ScaleRhythm and scale, computedLab 34 · Raga and TalaRaga and tala, computedLab 35 · MaqamMaqam, computedLab 36 · Bronze and SilkBronze and silk, computedLab 37 · TimelinesTimelines, computedLab 38 · Blues and SwingBlues and swing, computedLab 39 · ChangesChanges, computedLab 40 · The SongThe song studio, computedLab 41 · OrchestrationOrchestration, computedLab 42 · ComposingComposing as search, computedLab 43 · PerformingPerforming, computedLab 44 · Music for Picture and PlayMusic for picture and play, computedLab 45 · The SceneThe auditory scene, computedLab 46 · Expectation and EmotionExpectation, computedLab 47 · Origins and UniversalsOrigins, computedLab 48 · Digital AudioDigital audio, computedLab 49 · Filters, Delay and ReverbFilters, delay and reverb, computedLab 50 · Dynamics, Distortion and PitchDynamics, distortion and pitch, computedLab 51 · Synthesis I: Oscillators and FiltersSynthesis, computedLab 52 · Synthesis II: FM, Grains and Physical ModelsFM, grains and physical models, computedLab 53 · MIDI, Sequencers and the DAWMIDI and the engine, computedLab 54 · Microphones and LoudspeakersMicrophones and loudspeakers, computedLab 55 · Rooms and SpaceRooms and space, computedLab 56 · Recording and MixingRecording and mixing, computedLab 57 · Mastering and LoudnessMastering and loudness, computedLab 58 · Compression for the EarCompression for the ear, computedLab 59 · Live SoundLive sound, computedLab 60 · The Business of MusicThe business of music, computedLab 61 · Pitch, Onsets and TranscriptionPitch, onsets and transcription, computedLab 62 · Beat, Chords and StructureBeat, chords and structure, computedLab 63 · Finding MusicFinding music, computedLab 64 · Source SeparationSource separation, computedLab 65 · Machines that ComposeMachines that compose, computedLab 66 · Generative AudioGenerative audio's representations, computedLab 67 · Doing Research in MusicResearch methods, computedLab 68 · The VariationsThe round trip