Digitone
v0.6.0Play an original Elektron Digitone over MIDI: FM synth tracks, parameters, synced patterns
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
send_note
Send a MIDI note on/off.
| Parameter | Type | Description |
|---|---|---|
note * | integer | MIDI note number. Digitone plays chromatically on each track. |
channel | integer | MIDI channel. |
duration | number | Seconds to hold the note. |
velocity | integer | Note velocity. |
send_cc
Send a raw MIDI Control Change message.
| Parameter | Type | Description |
|---|---|---|
cc_number * | integer | CC number. 74=Filter Freq, 75=Filter Res, 7=Volume, 10=Pan. |
value * | integer | CC value. |
channel | integer | MIDI channel. |
send_program_change
Switch patterns with a MIDI Program Change.
| Parameter | Type | Description |
|---|---|---|
program * | integer | Program number. Patterns are numbered across banks. |
channel | integer | MIDI channel. |
send_nrpn
Send a raw NRPN message, for parameters with no CC mapping.
| Parameter | Type | Description |
|---|---|---|
lsb * | integer | NRPN LSB. Parameter number within the page. |
msb * | integer | NRPN MSB. Usually 1 for track parameters. |
value * | integer | Parameter value. |
channel | integer | MIDI channel. Channels 1-4 address tracks. |
send_note_sequence
Play a sequence of notes back to back, without MIDI clock.
| Parameter | Type | Description |
|---|---|---|
notes * | array | Note events, each [note, velocity, duration_sec?]. |
channel | integer | MIDI channel. |
delay | number | Gap between notes, in seconds. |
send_sysex
Send a SysEx message.
| Parameter | Type | Description |
|---|---|---|
data | Byte values. F0/F7 framing is added for you. | |
hex_string | Alternative to data: hex like '00 20 3C 0E 00'. |
send_midi_start
Start the sequencer from the beginning.
send_midi_stop
Stop the sequencer.
send_midi_continue
Resume the sequencer from its current position.
send_song_position
Set playback position with a Song Position Pointer.
| Parameter | Type | Description |
|---|---|---|
position * | integer | Position in sixteenth notes. |
list_parameters
List named parameters available to set_parameter, grouped by category.
| Parameter | Type | Description |
|---|---|---|
category | Filter to one category. Omit to list every category. |
set_parameter
Set a named parameter. Handles both CC and NRPN parameters. Use list_parameters to discover names.
| Parameter | Type | Description |
|---|---|---|
name * | string | Parameter name, e.g. 'filter_cutoff', 'lfo_speed', 'delay_time'. |
value * | integer | Value. Valid range depends on the parameter. |
channel | integer | MIDI channel. Channels 1-4 address tracks. |
play_with_clock
Run MIDI clock for a number of bars to drive the sequencer.
| Parameter | Type | Description |
|---|---|---|
bars | integer | Number of bars to play. |
bpm | number | Tempo in BPM. |
send_start | boolean | Send MIDI Start at the beginning. |
send_stop | boolean | Send MIDI Stop at the end. |
play_pattern_with_melody
Play a melody locked to MIDI clock. Beat positions are quarter notes.
| Parameter | Type | Description |
|---|---|---|
notes * | array | Notes as [beat, note, velocity, duration_sec]. |
bars | integer | Number of bars to play. |
bpm | number | Tempo in BPM. |
channel | integer | MIDI channel. |
send_stop | boolean | Send MIDI Stop at the end. |
play_pattern_with_loop
Play a short pattern that repeats for the full duration.
| Parameter | Type | Description |
|---|---|---|
loop_notes * | array | Notes as [beat_offset, note, velocity] within the loop. |
bars | integer | Total bars to play. |
bpm | number | Tempo in BPM. |
channel | integer | MIDI channel. |
loop_length | number | Loop length in bars. |
send_stop | boolean | Send MIDI Stop at the end. |
play_pattern_with_multi_channel_midi
Play a full arrangement: track triggers, per-channel notes, and parameter automation.
| Parameter | Type | Description |
|---|---|---|
automation_loop_bars | integer | Bars for the automation to loop over. 0 = no loop. |
bars | integer | Number of bars to play. |
bpm | number | Tempo in BPM. |
midi_channels | Notes per MIDI channel: {'9': [[beat, note, velocity, duration_sec], ...]}. | |
parameter_automation | Automation: {'param_name': [[beat, value], ...]}. | |
send_clock | boolean | Send MIDI clock. |
send_stop | boolean | Send MIDI Stop at the end. |
track_triggers | Track triggers as [beat, track, velocity]. |
play_pattern_with_parameter_automation
Play triggers with parameter automation running alongside.
| Parameter | Type | Description |
|---|---|---|
parameter_automation * | object | Automation: {'param_name': [[beat, value], ...]}. |
triggers * | array | Track triggers as [beat, track, velocity]. |
automation_loop_bars | integer | Bars for the automation to loop over. 0 = no loop. |
bars | integer | Number of bars to play. |
bpm | number | Tempo in BPM. |
send_stop | boolean | Send MIDI Stop at the end. |
send_parameter_sweep
Ramp a parameter from one value to another over time.
| Parameter | Type | Description |
|---|---|---|
duration * | number | Sweep duration in seconds. |
end_value * | integer | Ending value. |
parameter * | string | Parameter name, e.g. 'filter_cutoff'. |
start_value * | integer | Starting value. |
channel | integer | MIDI channel. |
steps | integer | Number of intermediate steps. |
send_parameter_envelope
Shape a parameter with an ADSR envelope.
| Parameter | Type | Description |
|---|---|---|
attack_level * | integer | Peak level reached at the end of attack. |
attack_time * | number | Attack time in seconds. |
decay_time * | number | Decay time in seconds. |
parameter * | string | Parameter name, e.g. 'filter_cutoff'. |
release_time * | number | Release time in seconds. |
sustain_level * | integer | Level held during sustain. |
sustain_time * | number | Sustain duration in seconds. |
channel | integer | MIDI channel. |
end_level | integer | Level after release completes. |
start_level | integer | Level before the attack begins. |
steps_per_second | integer | Update resolution. |
save_pattern
Save a full pattern — triggers, notes and automation — to disk.
| Parameter | Type | Description |
|---|---|---|
bars * | integer | Number of bars. |
bpm * | number | Tempo in BPM. |
midi_channels * | object | Notes per MIDI channel: {'9': [[beat, note, velocity, duration_sec], ...]}. |
pattern_name * | string | Name to save under. |
track_triggers * | array | Track triggers as [beat, track, velocity]. |
automation_loop_bars | integer | Bars for the automation to loop over. 0 = no loop. |
description | string | Description of the pattern. |
parameter_automation | Automation: {'param_name': [[beat, value], ...]}. |
load_pattern
Load a saved pattern and return its data.
| Parameter | Type | Description |
|---|---|---|
pattern_name * | string | Name of the pattern to load. |
list_patterns
List every saved pattern.
delete_pattern
Delete a saved pattern.
| Parameter | Type | Description |
|---|---|---|
pattern_name * | string | Name of the pattern to delete. |
update_pattern
Update individual fields of a saved pattern, leaving the rest alone.
| Parameter | Type | Description |
|---|---|---|
pattern_name * | string | Name of the pattern to update. |
automation_loop_bars | New automation loop length. | |
bars | New bar count. | |
bpm | New tempo. | |
description | New description. | |
midi_channels | Replacement MIDI channel data. | |
parameter_automation | Replacement automation. | |
track_triggers | Replacement track triggers. |
edit_pattern_triggers
Add, remove or replace a track's triggers in a saved pattern.
| Parameter | Type | Description |
|---|---|---|
beats * | array | Beat positions, e.g. [0, 1, 2, 3]. |
pattern_name * | string | Name of the pattern to edit. |
track * | integer | Track number (1-4). |
mode | string | How `beats` combine with existing triggers. |
note | Chromatic note. Defaults to the track's trigger note. | |
velocity | integer | Note velocity. |
edit_pattern_chords
Place a chord at a bar position, one note per MIDI channel. Each note goes on its own channel so monophonic MIDI tracks can voice a chord together; the note is held until the next chord.
| Parameter | Type | Description |
|---|---|---|
bar * | integer | Bar number (0-based) to place the chord on. |
chord_notes * | array | MIDI notes, e.g. [60, 64, 67] for C major. |
pattern_name * | string | Name of the pattern to edit. |
channels | MIDI channels to spread the chord across. Default 9-12. | |
velocity | integer | Note velocity. |
check_pattern
Validate and normalize strict step notation.
| Parameter | Type | Description |
|---|---|---|
text * | string | Pattern notation. |
save_pattern_text
Save a validated text pattern.
| Parameter | Type | Description |
|---|---|---|
pattern_name * | string | Name to save under. |
text * | string | Strict step notation. |
save_song
Save a text-pattern arrangement.
| Parameter | Type | Description |
|---|---|---|
arrangement * | string | 'intro x2, verse+bass x4, outro' |
song_name * | string | Name to save under. |
bpm | integer | Override tempo; 0 keeps pattern tempos. |
list_songs
List saved compact song arrangements.
delete_song
Delete a saved compact song arrangement.
| Parameter | Type | Description |
|---|---|---|
song_name * | string | Saved song to delete. |
play_pattern_text
Play text notation, switching loops without a gap.
| Parameter | Type | Description |
|---|---|---|
what * | string | Pattern text, saved name, or arrangement. |
loop | boolean | Loop; later play calls switch at loop end. |
stop_pattern_playback
Stop background text-pattern playback and release sounding notes.
save_automation_preset
Save parameter automation for reuse across patterns.
| Parameter | Type | Description |
|---|---|---|
name * | string | Preset name. |
parameter_automation * | object | Automation: {'param_name': [[beat, value], ...]}. |
description | string | What this preset does. |
load_automation_preset
Load a saved automation preset.
| Parameter | Type | Description |
|---|---|---|
name * | string | Preset name to load. |
list_automation_presets
List every saved automation preset.
export_pattern_to_midi
Export a pattern to a standard MIDI file.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Output filename; .mid is added if missing. |
bars | integer | Number of bars. |
bpm | number | Tempo in BPM. |
melody_channel | integer | MIDI channel. |
melody_notes | Melody notes as [beat, note, velocity, duration_sec]. | |
track_triggers | Track triggers as [beat, track, velocity]. |
export_automation_to_midi
Export parameter automation as CC events in a MIDI file.
| Parameter | Type | Description |
|---|---|---|
automation * | object | {'parameter_automation': {...}, 'bpm': N}. |
filename * | string | Output filename; .mid is added if missing. |
channel | integer | MIDI channel. |
save_last_melody
Save the most recently played melody to a MIDI file.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Output filename; .mid is added if missing. |
monitor_midi_input
Watch incoming MIDI and report what arrived.
| Parameter | Type | Description |
|---|---|---|
duration | number | How long to listen, in seconds. |
record_midi_input
Record incoming MIDI to a .mid file.
| Parameter | Type | Description |
|---|---|---|
filename * | string | Output filename; .mid is added if missing. |
bpm | number | Tempo written into the file. |
duration_sec | number | Recording length in seconds. |
list_midi_recordings
List the MIDI files in the recordings directory.
play_midi_file
Play a MIDI file out to the device.
| Parameter | Type | Description |
|---|---|---|
filename * | string | MIDI file in the recordings directory. |
channel_offset | integer | Shift every channel by this amount. |
play_chord
Play simultaneous notes. The Digitone shares 8 voices across its 4 tracks.
| Parameter | Type | Description |
|---|---|---|
notes * | array | MIDI notes, e.g. [60, 64, 67] for C major. |
channel | integer | MIDI channel. Tracks 1-4 listen on channels 1-4. |
duration | number | Seconds to hold the chord. |
velocity | integer | Note velocity. |
set_algorithm
Choose the FM algorithm, i.e. how the four operators modulate each other. Lower numbers are deeper modulation chains; 8 is all carriers (organ-like).
| Parameter | Type | Description |
|---|---|---|
algorithm * | integer | Algorithm number (1-8). |
channel | integer | MIDI channel. Tracks 1-4 listen on channels 1-4. |
set_ratios
Set operator frequency ratios. 1:1 is saw-like, 2:1 square-like, 3:1 a narrow pulse; non-integer ratios give bells and metallic timbres.
| Parameter | Type | Description |
|---|---|---|
channel | integer | MIDI channel. Tracks 1-4 listen on channels 1-4. |
ratio_a | Operator A ratio. Non-integer is metallic. | |
ratio_b | Operator B ratio. Applies to both B1 and B2. | |
ratio_c | Carrier C ratio. Integer ratios set pitch. |
set_operator_levels
Set modulation index per operator. Higher values are brighter and harsher.
| Parameter | Type | Description |
|---|---|---|
a_level | Operator A modulation depth. | |
b_level | Operator B modulation depth. Applies to B1 and B2. | |
channel | integer | MIDI channel. Tracks 1-4 listen on channels 1-4. |
set_operator_envelope
Shape how an operator's modulation depth changes over time.
| Parameter | Type | Description |
|---|---|---|
operator * | string | B covers both B1 and B2. |
attack | Attack time. | |
channel | integer | MIDI channel. Tracks 1-4 listen on channels 1-4. |
decay | Decay time. | |
end | End level: the level held after decay. | |
level | Peak modulation depth. |
set_chorus
Set the chorus effect. The Digitakt has no chorus; this is Digitone-only.
| Parameter | Type | Description |
|---|---|---|
channel | integer | FX channel. |
depth | Chorus depth. | |
hp | High-pass filter. | |
mix | Mix level. | |
speed | Chorus speed. | |
width | Stereo width. |
list_sounds
List the saved sounds in one +Drive sound bank (needs elektroid-cli).
| Parameter | Type | Description |
|---|---|---|
bank | string | Sound bank letter on the +Drive. |