[CM] Receiving OSC in (cm:rts)

Brandon Hale bthaleproductions at gmail.com
Mon Apr 5 15:51:08 PDT 2021


Thank you Tito. Orm ended up helping me out with this, so no worries.

On 4/5/21 12:11 PM, Tito Latini wrote:
> On Mon, Apr 05, 2021 at 10:31:24AM -0400, Brandon Hale wrote:
>> I just got around to trying this out, and man, this is awesome! Being able
>> to trigger common music events with the incudine responder is excellent.
>>
>> For the responders, you would have to create a new responder for each event
>> you would want for different osc messages, right?
> Yes with MAKE-OSC-RESPONDER. The expansion is
>
> (macroexpand-1 '(make-osc-responder *oscin* "/osc/test" "iii"
>                   (lambda (a b c)
>                     (msg warn "~D ~D ~D" a b c))))
> ;; (MAKE-RESPONDER *OSCIN*
> ;;                 (LAMBDA (#:S582)
> ;;                   (WHEN (INCUDINE.OSC:CHECK-PATTERN #:S582 "/osc/test" "iii")
> ;;                     (INCUDINE.OSC:WITH-VALUES (A B C)
> ;;                         (#:S582 "iii")
> ;;                       (MSG WARN "~D ~D ~D" A B C)))
> ;;                   (VALUES)))
>
> therefore it is also possible a single responder.
>
> There is a tutorial about OSC in
>
>      /path/to/incudine/doc/tutorials/osc_messages.cudo   (lisp file)
>      /path/to/incudine/doc/html/tutorial_osc.html        (html file)
>      http://incudine.sourceforge.net/tutorial_osc.html   (web)
>
> I could add another example if something is not clear.


More information about the Cmdist mailing list