my_osc_send   xtlang


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

Implementation

;; my native message sender
;; NOTE osc-strings must be padded to 32bit multiples
(bind-func my_osc_send
  (lambda (address a:float b:i32)
    (let ((types ",fi")
          (mod (modulo (+ (strlen address) 1) 4))
          (addressl (+ (+ (strlen address) 1)
                       (if (= 0 mod) 0 (- 4 mod))))
          (typesl 4)
          (length (+ addressl typesl 4 4))
          (data (malloc length))
          (args (bitcast (pref-ptr data (+ addressl typesl)) i32*)))
      (printf "addy length %d:%d:%d\n" (strlen address) addressl (- 4 (modulo (+ (strlen address) 1) 4)))
      (strcpy (pref-ptr data 0) address)
      (strcpy (pref-ptr data addressl) types)
      (pset! args 0 (swap32f a))
      (pset! args 1 (swap32i b))
      (llvm_send_udp "localhost" 7020 data (i64toi32 length)))))


Back to Index

Similar Entries

  • MyLittleCleanupTest    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • PARAM_OSC1_AMP    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC1_AMP    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC1_AMP    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC1_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC1_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC1_FRQ    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC1_PAN    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC1_PHASE    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC1_PW    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC1_PW    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC1_PW    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC2_AMP    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC2_AMP    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC2_AMP    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC2_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC2_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC2_FRQ    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC2_PAN    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC2_PHASE    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC2_PW    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC2_PW    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC2_PW    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC3_AMP    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC3_AMP    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC3_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC3_FRQ    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC3_PAN    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC3_PHASE    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC3_PW    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC3_PW    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC4_AMP    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC4_AMP    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC4_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC4_FRQ    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC4_PAN    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC4_PHASE    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_OSC4_PW    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_OSC4_PW    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • cerberus_osc1_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_osc2_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_osc3_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_osc4_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • dl_osc1_amp    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc1_amp    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc1_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc1_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc1_pitch    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc1_pitch    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc1_pw    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc1_pw    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_amp    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_amp    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_phase    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_pitch    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_pitch    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_pw    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_osc2_pw    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • init-osc-vars    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • io:osc:receive    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • io:osc:send    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • my-gl-loop    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • my-inc-maker    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-inc-maker-wrapper    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-inc-test    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-1    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-1    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-10    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-11    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-12    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-13    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-1f    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-2    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-3    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-4    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-6    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-7    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-8    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test-9    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test14    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test15    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test16    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test17    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test18    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test19    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test20    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test25    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test26    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test27    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test28    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-test29    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • my-tuple-chk    scheme    /digego/extempore/tree/v0.8.9/tests/core/constraints.xtm
  • my_button_cb    xtlang    /digego/extempore/tree/v0.8.9/examples/external/gui.xtm
  • my_checkbox_cb    xtlang    /digego/extempore/tree/v0.8.9/examples/external/gui.xtm
  • my_radio_cb    xtlang    /digego/extempore/tree/v0.8.9/examples/external/gui.xtm
  • my_simple_fm_inst    xtlang    /digego/extempore/tree/v0.8.9/examples/core/midi_synth.xtm
  • my_slider2D_cb    xtlang    /digego/extempore/tree/v0.8.9/examples/external/gui.xtm
  • my_slider_cb    xtlang    /digego/extempore/tree/v0.8.9/examples/external/gui.xtm
  • myf    scheme    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • myf    scheme    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • myprint    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • myprint    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • myprint    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • nnsock_set_send_timeout    xtlang    /digego/extempore/tree/v0.8.9/libs/external/nanomsg.xtm
  • osc    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm
  • osc    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm
  • osc    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm
  • osc    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm
  • osc    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm
  • osc-receive-7009    scheme    /digego/extempore/tree/v0.8.9/examples/core/osc_101.xtm
  • osc-receive-7019    scheme    /digego/extempore/tree/v0.8.9/examples/core/osc_101.xtm
  • osc1_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • osc2_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • osc3_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • osc4_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • oscXAnalogue_c    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue.xtm
  • osc_c    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_101.xtm
  • osc_receive_7020    xtlang    /digego/extempore/tree/v0.8.9/examples/core/osc_101.xtm
  • osc_send_one_double    xtlang    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • osc_send_two_double    xtlang    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • oscv_c    xtlang    /digego/extempore/tree/v0.8.9/libs/core/vaudio_dsp.xtm
  • oscv_mc_c    xtlang    /digego/extempore/tree/v0.8.9/libs/core/vaudio_dsp.xtm
  • pm_send    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • rtmidi_send    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • send-fluid-column-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-first-column-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-first-row-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-last-row-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-row-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-midi-cc    scheme    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • send-skel    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • send-skeleton-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/kinect.xtm
  • send_outgoing_walkers    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/random-walk.xtm
  • send_process_message    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • send_request    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg-request.xtm
  • send_response    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg-reply.xtm
  • send_response    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg-respondent.xtm
  • send_survey    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg-surveyor.xtm
  • sender    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • sender    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • set_dl_osc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • set_osc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm