Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: add-midi-controller , Previous: add-elements , Up: A , Home: Overview

Clamps Dictionary

add-midi-cc-fn

Function

(add-midi-cc-fn fn ccnum channel)

Add fn to *​​midi-cc-fns​​* for ccnum and channel. fn will be called with the controller value as argument when MIDI input at channel and ccnum is received.

Arguments

fn Function of one Argument to call on MIDI input
ccnum Integer in the range [0..127] denoting the MIDI Controller number.
channel Integer in the range [1..16] denoting the MIDI channel.

Example

(add-midi-cc-fn
  (lambda (cc-val) (format t "Received Controller Value ~a~%" cc-val))
  1 1)
;; => (#<function (lambda (cc-val)) {564DA61B}>)

Author: Orm Finnendahl

Created: 2025-12-06 Sa 20:15

Validate