add() transposes pattern notes by a numeric amount, treating letter names as numbers
.add(n) adds a value to each note in a pattern. When applied to letter-name notes, they are first converted to their numeric (MIDI) equivalent. The argument can itself be a pattern: .add("<0 1 2 1>") cycles the transposition amount per cycle. Multiple add() calls stack additively. Combined with scale() and n(), add() enables interval and degree manipulation within a scale context.
Examples
note(“c e g”).add(12) // up one octave n(“0 2 4 6 ~ 7 9 5”.add(“<0 1 2 1>“)).scale(“C:minor”) // patterned transposition
Assessment
What is the output of note(“c”).add(4).add(3)? Name the resulting interval and MIDI note.