You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-cheatsheet.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ The top-level controller for a musical piece.
44
44
|`set_bpm(bpm) -> None`| Instantly change the tempo. |
45
45
|`target_bpm(bpm, bars, shape) -> None`| Smoothly ramp the tempo to a target value over a number of bars. |
46
46
|`trigger(fn, channel, beats, bars, steps, unit, quantize, drum_note_map, chord) -> None`| Trigger a one-shot pattern immediately or on a quantized boundary. |
47
+
|`tuning(source, cents, ratios, equal, bend_range, channels, reference_note, exclude_drums) -> None`| Set a global microtonal tuning for the composition. |
47
48
|`tweak(name, **kwargs) -> None`| Override parameters for a running pattern. |
48
49
|`unmute(name) -> None`| Unmute a previously muted pattern. |
49
50
|`web_ui() -> None`| Enable the realtime Web UI Dashboard. |
@@ -56,8 +57,10 @@ The musician's 'palette' for creating musical content.
56
57
| Method | Description |
57
58
|---|---|
58
59
|`__init__(pattern, cycle, conductor, drum_note_map, section, bar, rng, tweaks, default_grid, data) -> None`| Initialize the builder with pattern context, cycle count, and optional section info. |
60
+
|`apply_tuning(tuning, bend_range, channels, reference_note) -> 'PatternBuilder'`| Apply a microtonal tuning to this pattern via pitch bend injection. |
59
61
|`arpeggio(pitches, spacing, velocity, duration, direction, rng) -> 'PatternBuilder'`| Cycle through a list of pitches at regular beat intervals. |
60
62
|`bend(note, amount, start, end, shape, resolution) -> 'PatternMidiMixin'`| Bend a specific note by index. |
63
+
|`branch(seed, depth, path, mutation, velocity, duration, spacing) -> 'PatternAlgorithmicMixin'`| Generate a melodic variation by navigating a fractal tree of transforms. |
61
64
|`bresenham(pitch, pulses, velocity, duration, dropout, no_overlap, rng) -> 'PatternAlgorithmicMixin'`| Generate a rhythm using the Bresenham line algorithm. |
62
65
|`bresenham_poly(parts, velocity, duration, grid, dropout, no_overlap, rng) -> 'PatternAlgorithmicMixin'`| Distribute multiple drum voices across the pattern using weighted Bresenham. |
63
66
|`broken_chord(chord_obj, root, order, spacing, velocity, duration, inversion) -> 'PatternBuilder'`| Play a chord as an arpeggio in a specific or random order. |
@@ -76,6 +79,7 @@ The musician's 'palette' for creating musical content.
76
79
|`dropout(probability, rng) -> 'PatternBuilder'`| Randomly remove notes from the pattern. |
0 commit comments