Algorithmic Cell Phone Music

Jason Sigal

We'll be using

  • Computers
  • WiFi
  • p5 web editor
  • JavaScript
    • p5.js
    • Tone.JS
  • Cell Phones

Why

Algorithm

Algorithm

  • A set of rules
  • Constraints

Algorithm

  • Pitch
  • Rhythm

Music

What is Music?

Sound

Organized Sound

Organized Sound

Pitch, Rhythm

Sound as a function

Sound as a function of Motion

Sound as a function of Time

Time

Frequency

Pitch

Note

“Music is the space between the notes”

-Claude Debussy

interval

Tone.JS

tonejs.org

Attack / Release

Envelope

Attack Decay

Sustain  Release

(ADSR)

ADSR

Create a loop

empty loop

Iterations

Divisions

  • 3
  • 4
  • 8
  • 16
  • 32

Playback Rate

this.playbackRate = Math.random() > 0.5 ? 1.0 : 0.5;

Device Rotation

rotationX

rotationY

rotationZ

p5.js

Map Rotation

map(rotationX, 0, 180, 0, 1);

Audio on mobile

StartAudioContext.js

  StartAudioContext(Tone.context, 'canvas');

Toggle Loop

sketch

Loop Improv

algorithmic cell phone music

By Jason Sigal

algorithmic cell phone music

slides from an experimental workshop at the Spectral Event

  • 1,985