Skip to content

Commit

Permalink
Better CC support.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Oct 20, 2024
1 parent 1309cfc commit 0ea1c8e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/midimsg.erl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
rt_tick/0
]).
-export([
cc/2,
cc/2, cc/3,
program_change/1, program_change/2
]).
-export([
Expand Down Expand Up @@ -252,8 +252,13 @@ poly_aftertouch(Channel, Pitch, Pressure) ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

-spec cc (integer(), integer()) -> tuple().
cc(Controller, Value) ->
{midi, {cc, [{controller, Controller},
cc(Control, Value) ->
{midi, {cc, [{control, Control},
{value, Value}]}}.

cc(Channel, Control, Value) ->
{midi, {cc, [{channel, Channel},
{control, Control},
{value, Value}]}}.

-spec program_change (integer()) -> tuple().
Expand Down

0 comments on commit 0ea1c8e

Please sign in to comment.