Skip to content

Commit 1bef6b5

Browse files
committed
MIDI - ignore incoming clock messages
In the future we should allow users to optionally enable these as well as finding a nice way of working with them. Also need to consider how to handle other incoming clock signals such as that from Ableton Link.
1 parent 89b0851 commit 1bef6b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/server/erlang/sonic_pi_server/src/pi_server/pi_server_midi.erl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ loop(State) ->
108108
%% # They quickly full up the Sonic Pi cue log.
109109
%% # In the future it might be good to have this be optionally ignored
110110
do_nothing;
111+
{tau, midi, clock, _, _} ->
112+
%% # Ignore incoming MIDI clock messages
113+
%% # They quickly full up the Sonic Pi cue log.
114+
%% # In the future it might be good to have this be optionally ignored
115+
do_nothing;
111116
{tau, midi, _Event, _Source, Args}=Event ->
112117
Path = mk_tau_str(Event),
113118
maps:get(cue_server, State) ! {midi_in, Path, Args}

0 commit comments

Comments
 (0)