Skip to content

Commit

Permalink
Fixed variable references.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Sep 14, 2024
1 parent cf8e37b commit da77fed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/midibin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ decode(<<1:1, 3:3, Channel:4, 0:1, 125:7, 0:1, 0:7>>) ->

%%decode(<<1:1, 3:3, Channel:4, 0:1, 126:7, 0:1, 0:7>>) ->
%% {midi, mono_mode_on};
decode(<<1:1, 3:3, Channel:4, 0:1, 126:7, 0:1, _:7>>) ->
decode(<<1:1, 3:3, _:4, 0:1, 126:7, 0:1, _:7>>) ->
?ERR_NOT_IMPL;

decode(<<1:1, 3:3, Channel:4, 0:1, 127:7, 0:1, 0:7>>) ->
Expand Down Expand Up @@ -318,7 +318,7 @@ encode({midi, omni_mode_on}) ->

%% mono_mode_on

encode({midi, {mode, [{channel, Channel},
encode({midi, {mode, [{channel, _},
{control, mono_mode_on}]}}) ->
%%<<1:1, 3:3, Channel:4, 0:1, 126:7, 0:1, 0:7>>;
?ERR_NOT_IMPL;
Expand Down Expand Up @@ -425,9 +425,9 @@ encode({midi, {batch, Batch}}) ->
%%%%% ENCODE: Unexpected Messages %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

encode({midi, Data}) ->
encode({midi, _}) ->
?ERR_MIDI_UNSUP;
encode(Msg) ->
encode(_) ->
?ERR_NON_MIDI.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit da77fed

Please sign in to comment.