osc_receive_7020   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/osc_101.xtm

Implementation

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; OSC messages can also be sent and received
;; using extempore lang compiled code
;;
;; a couple of things to keep in mind:
;; args is the complete list of arguments
;;
;; by default all extempore osc ints and floats
;; are 32bit (i.e. not 64bit)
;; finally, osc messages are big endian
;; so you'll likely need to swap your arguments
(bind-func osc_receive_7020
  (lambda (address:i8* types:i8* args:i8*)
    (let ((data (bitcast args i32*)))
      (printf "address:%s  type:%s arg1:%f arg2:%d\n"
        address types
        (ftod (unswap32f (pref data 0)))
        (unswap32i (pref data 1))))))


Back to Index

Similar Entries

  • PARAM_OSC1_AMP    scheme
  • PARAM_OSC1_AMP    scheme
  • PARAM_OSC1_AMP    scheme
  • PARAM_OSC1_FRQ    scheme
  • PARAM_OSC1_FRQ    scheme
  • PARAM_OSC1_FRQ    scheme
  • PARAM_OSC1_PAN    scheme
  • PARAM_OSC1_PHASE    scheme
  • PARAM_OSC1_PW    scheme
  • PARAM_OSC1_PW    scheme
  • PARAM_OSC1_PW    scheme
  • PARAM_OSC2_AMP    scheme
  • PARAM_OSC2_AMP    scheme
  • PARAM_OSC2_AMP    scheme
  • PARAM_OSC2_FRQ    scheme
  • PARAM_OSC2_FRQ    scheme
  • PARAM_OSC2_FRQ    scheme
  • PARAM_OSC2_PAN    scheme
  • PARAM_OSC2_PHASE    scheme
  • PARAM_OSC2_PW    scheme
  • PARAM_OSC2_PW    scheme
  • PARAM_OSC2_PW    scheme
  • PARAM_OSC3_AMP    scheme
  • PARAM_OSC3_AMP    scheme
  • PARAM_OSC3_FRQ    scheme
  • PARAM_OSC3_FRQ    scheme
  • PARAM_OSC3_PAN    scheme
  • PARAM_OSC3_PHASE    scheme
  • PARAM_OSC3_PW    scheme
  • PARAM_OSC3_PW    scheme
  • PARAM_OSC4_AMP    scheme
  • PARAM_OSC4_AMP    scheme
  • PARAM_OSC4_FRQ    scheme
  • PARAM_OSC4_FRQ    scheme
  • PARAM_OSC4_PAN    scheme
  • PARAM_OSC4_PHASE    scheme
  • PARAM_OSC4_PW    scheme
  • PARAM_OSC4_PW    scheme
  • cerberus_osc1_cc    xtlang
  • cerberus_osc2_cc    xtlang
  • cerberus_osc3_cc    xtlang
  • cerberus_osc4_cc    xtlang
  • clock-client-receive    scheme
  • clock-server-receive    scheme
  • dl_osc1_amp    xtlang
  • dl_osc1_amp    xtlang
  • dl_osc1_phase    xtlang
  • dl_osc1_phase    xtlang
  • dl_osc1_pitch    xtlang
  • dl_osc1_pitch    xtlang
  • dl_osc1_pw    xtlang
  • dl_osc1_pw    xtlang
  • dl_osc2_amp    xtlang
  • dl_osc2_amp    xtlang
  • dl_osc2_phase    xtlang
  • dl_osc2_phase    xtlang
  • dl_osc2_pitch    xtlang
  • dl_osc2_pitch    xtlang
  • dl_osc2_pw    xtlang
  • dl_osc2_pw    xtlang
  • init-osc-vars    xtlang
  • io:osc:receive    scheme
  • io:osc:send    scheme
  • ipc:sync-receive    scheme
  • my_osc_send    xtlang
  • on_process_message_received    xtlang
  • osc    xtlang
  • osc    xtlang
  • osc    xtlang
  • osc    xtlang
  • osc    xtlang
  • osc-receive-7009    scheme
  • osc-receive-7019    scheme
  • osc1_cc    xtlang
  • osc2_cc    xtlang
  • osc3_cc    xtlang
  • osc4_cc    xtlang
  • oscXAnalogue_c    xtlang
  • osc_c    xtlang
  • osc_send_one_double    xtlang
  • osc_send_two_double    xtlang
  • oscv_c    xtlang
  • oscv_mc_c    xtlang
  • receive_incoming_walkers    xtlang
  • receiver    xtlang
  • receiver_loop    xtlang
  • send-fluid-column-osc    xtlang
  • send-fluid-first-column-osc    xtlang
  • send-fluid-first-row-osc    xtlang
  • send-fluid-last-row-osc    xtlang
  • send-fluid-row-osc    xtlang
  • send-skeleton-osc    xtlang
  • set_dl_osc    xtlang
  • set_osc    xtlang
  • sync-server-receive    scheme
  • topclock-receive    scheme