Rhythm and tuning

View slides

Tone-rhythm

source

  • how do you match a rhythm and pitch array together?
const mariaDurations = ['8n', '8n', ['2n', '4n'], '8n', '4t', '4t', '4t', '4t', '4t', '4t', '8n', ['2n', '4n'], '8n', '8n', '8n', '8n', '8n', ['4n', '8n'], '8n', '8n', '8n', '8n', '8n', '4n', '4n', ['2n', '4n', '8n'], '8n', '8n', ['2n', '4n'], '8n', '4t', '4t', '4t', '4t', '4t', '4t', '8n', ['2n', '4n'], '8n', '8n', '8n', '8n', '8n', ['4n', '8n'], '8n', '8n', '8n', '8n', '8n', '4n', '4n', ['2n', '4n', '8n']];

const mariaPitches = ["Eb4", "A4", "Bb4", "Eb4", "A4", "Bb4", "C5", "A4", "Bb4", "C5", "A4", "Bb4", "Bb4", "A4", "G4", "F4", "Eb4", "F4", "Bb4", "Ab4", "G4", "F4", "Eb4", "F4", "Eb4", "G4", "Eb4", "A4", "Bb4", "Eb4", "A4", "Bb4", "C5", "A4", "Bb4", "C5", "D5", "Bb4", "D5", "Eb5", "D5", "C5", "Bb4", "D5", "D5", "Eb5", "D5", "C5", "Bb4", "D5", "Eb5", "F5"];
  • option 1 - manually {"time" : 0, "note" : "C3", "velocity": 0.9}, {"time" : "0:2", "note" : "C4", "velocity": 0.5}
  • or Tone-rhythm

Tone-rhythm ex:

starter


Scales

  • A set of notes in a given order
  • ex c major scale
    • C D E F G A B
  • F major scale
    • F G A Bb C D E
  • scale maker defines these scales for us

Scale Example

starter


Tunings

Tune.js


Control Patterns

  • Tone.CtrlPattern
    • used in Tone.Pattern
    • run through an array of notes in a specific order
  • Tone.CtrlMarkov
    • markov chain
    • a sequence of possible events in which the probability of each event depends only on the state attained in the previous event
    • can algorithmically switch between musical phrases
  • Tone.CtrlRandom
    • return a random number
    • same as p5’s random()
  • Tone.CtrlInterpolate
    • interpolate between a list of numbers
    • similar to p5’s map()

Pattern / tuning example

starter