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 channel ccnum)

Add fn to *​​midi-cc-fns​​* for channel and ccnum. 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
channel Integer in the range [1..16] denoting the MIDI channel.
ccnum Integer in the range [1..128] denoting the MIDI Controller number.

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-02-18 Di 12:58

Validate