Clamps Dictionary
make-led-pulsar
Function
(make-led-pulsar ccnum chan midi-output &key (freq 2) (pulse-width 0.5))
Return an "instance" (closure) of a pulse generator flashing a LED on an external MIDI Harware device by sending the values 0/127 using ccnum, chan and midi-output. Use the :freq and :pulse-width keywords to change the speed and duty cycle of the pulse.
Funcalling the returned instance with the :start argument will start the pulse, funcalling it with the :stop argument will stop flashing, calling it with :freq <freq> or :pulse-width <pulse-width> will change the respective values.
Example
(defvar *my-pulsar* (make-led-pulsar 32 1 (cm:ensure-jackmidi *midi-out1*))) (funcall *my-pulsar* :start) (funcall *my-pulsar* :freq 1) (funcall *my-pulsar* :pulse-width 0.1) (funcall *my-pulsar* :stop)
Created: 2025-06-08 So 16:56