Chords and arpeggios
The same four chords played two ways: all notes at once, or one note at a time. Then pad, arpeggio and bass together.
You will learn
- Tell
stack(at the same time) fromsequence(one after another), using the same notes
Block chords
CHORDS comes from the Sound Cookbook: each chord is three pitches in a Mini-Notation stack, which plays them together. One chord per bar with cat.
// Each chord struck once per bar: all its notes at the same time.
export const blockChords = chain(
fn('cat',
fn('note', CHORDS.C),
fn('note', CHORDS.Am),
fn('note', CHORDS.F),
fn('note', CHORDS.G),
),
...keysSound(KEYS_DEFAULTS),
)Block chords
Arpeggios
Swap stack for sequence and the same notes play one after another. repeat(…, 2) fits the four-note figure into the bar twice.
// The same notes one at a time: sequence instead of stack.
// Low, middle, high, middle — played twice per bar with repeat().
const arpeggio = (low: Pitch, middle: Pitch, high: Pitch) =>
repeat(sequence(pitch(low), pitch(middle), pitch(high), pitch(middle)), 2)
export const arpeggios = chain(
fn('cat',
fn('note', arpeggio('c4', 'e4', 'g4')),
fn('note', arpeggio('c4', 'e4', 'a4')),
fn('note', arpeggio('c4', 'f4', 'a4')),
fn('note', arpeggio('b3', 'd4', 'g4')),
),
...keysSound(KEYS_DEFAULTS),
)Arpeggios
Pad, arpeggio and bass
Three parts, one progression: a slow pad holds each chord, the arpeggio moves on top, and the roots from the Bass line example sit underneath.
// Arpeggios on top, held pad chords in the middle, roots underneath.
export const harmony = chain(
fn('stack',
arpeggios,
chain(fn('cat', fn('note', CHORDS.C), fn('note', CHORDS.Am), fn('note', CHORDS.F), fn('note', CHORDS.G)), ...padSound(PAD_DEFAULTS)),
roots,
),
fn('cpm', 25),
)