LR_to_MS_2_channels   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm

Implementation

;convert LR interleaved signal to 3 buffers buffer_size/2 in length
(bind-func LR_to_MS_2_channels
  (lambda (buffer:float* buffer_size:i64 mid:float* side:float*)
    (let ((n:i64 0))
      (dotimes (n (/ buffer_size 2))
        (pset! mid n (+ (pref buffer (* n 2)) (pref buffer (+ (* n 2) 1)))) ;l+r
        (pset! side n (- (pref buffer (* n 2)) (pref buffer (+ (* n 2) 1))))) ;l-r
      void)))


Back to Index

Similar Entries

  • BTree_walk_postorder    xtlang
  • CmulR    xtlang
  • Complex_phase2    xtlang
  • LEGATO_OFF    scheme
  • LEGATO_ON    scheme
  • LFO_OPT_FRQ_TO_AMP    scheme
  • LFO_OPT_FRQ_TO_FRQ    scheme
  • LR_combine    xtlang
  • LR_split    xtlang
  • LR_to_MS_3_channels    xtlang
  • MS_to_LR_2_channels    xtlang
  • MS_to_LR_3_channels    xtlang
  • PARAM_LFO2    scheme
  • PARAM_LFO2    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
  • PaDeviceInfo_toString    xtlang
  • PaHostApiInfo_toString    xtlang
  • PaHostErrorInfo_toString    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • PaStreamInfo_toString    xtlang
  • PaStreamParameters_toString    xtlang
  • Pm_Event_Data2    xtlang
  • Pm_Message_Data2    xtlang
  • VtoPtr    xtlang
  • Widget_button    xtlang
  • Widget_button    xtlang
  • Widget_button_c    xtlang
  • Widget_find_postorder    xtlang
  • Widget_slider2D    xtlang
  • Widget_slider2D    xtlang
  • Widget_slider2D_c    xtlang
  • Widget_walk_postorder    xtlang
  • Windows-add-libdir-to-PATH    scheme
  • a#2    scheme
  • a2    scheme
  • ab2    scheme
  • add-density-2    xtlang
  • add-velocity-2    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_radio_button    xtlang
  • addy2    scheme
  • ai_color4_to_float4    xtlang
  • ai_matrix4_to_float    xtlang
  • anyatom->string    scheme
  • array-test2    xtlang
  • astra_stop    xtlang
  • atom?    scheme
  • audiofile_16bitPCM_to_sample_be    xtlang
  • audiofile_16bitPCM_to_sample_le    xtlang
  • audiofile_24bitPCM_to_sample_be    xtlang
  • audiofile_24bitPCM_to_sample_le    xtlang
  • audiofile_float_to_sample_be    xtlang
  • audiofile_float_to_sample_le    xtlang
  • b2    scheme
  • bb2    scheme
  • bd2    scheme
  • bd2    scheme
  • bind-data-constructors    scheme
  • bind-data-deconstructors    scheme
  • bind-data-deconstructors-macros    scheme
  • bind-data-type-constructor    scheme
  • blpulse2_c    xtlang
  • bottom    xtlang
  • c#2    scheme
  • c2    scheme
  • callback-test2-helper    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol    xtlang
  • cart_to_pol2    xtlang
  • cas-xtm-to-string    scheme
  • cas2sexpr    scheme
  • cas2xtm    xtlang
  • cas2xtm_scm    xtlang
  • cas_parse_terms    xtlang
  • cat2    xtlang
  • cat2    xtlang
  • cb2    scheme
  • cb2    scheme
  • cc2    scheme
  • cerberus_lfo2_cc    xtlang
  • cerberus_osc2_cc    xtlang
  • ch2    scheme
  • check-token    scheme
  • chunk_80211    xtlang
  • cl:atom?    scheme
  • constructor-name-and-type    scheme
  • cp2    scheme
  • cpClosestPointOnSegment    xtlang
  • cpTransformScale    xtlang
  • cpvtoangle    xtlang
  • create-zone2    xtlang
  • create_shadertoy_shader    xtlang
  • curl_setopts_authenticate    xtlang
  • curl_setopts_basic    xtlang
  • curl_setopts_header    xtlang
  • custom-match    scheme
  • cvGetHistValue_2D    xtlang
  • d#2    scheme
  • d2    scheme
  • db2    scheme
  • deconstructor-name-and-type    scheme
  • degToRad    xtlang
  • djb2    xtlang
  • dl_filter2_frq    xtlang
  • dl_filter2_frq    xtlang
  • dl_filter2_frq_scale    xtlang
  • dl_filter2_frq_scale    xtlang
  • dl_filter2_res    xtlang
  • dl_filter2_res    xtlang
  • dl_filter2_type    xtlang
  • dl_filter2_type    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
  • draw-skeleton    xtlang
  • dsp2:DSP    xtlang
  • dsp2:DSP    xtlang
  • dv_draw_axes_2D    xtlang
  • dv_draw_axis_labels_2D    xtlang
  • e2    scheme
  • eb2    scheme
  • encode_80211    xtlang
  • eq_i32_equal    xtlang
  • eq_test2    xtlang
  • f#2    scheme
  • f2    scheme
  • f2    xtlang
  • f4ToArray    xtlang
  • factor    macro
  • factorial    scheme
  • factorize-scheme    scheme
  • fill_direction_vector    xtlang
  • fill_direction_vector    xtlang
  • fir_half_80211    xtlang
  • fits-image-data-R32    xtlang
  • fits-image-data-R32    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • fits-image-data-RGBA32-false    xtlang
  • fleet_connect_to_nodes    xtlang
  • fluid-fsc-2    xtlang
  • fmsynth    scheme
  • fmsynth    scheme
  • fmsynth    scheme
  • fmsynth_note    xtlang
  • g#2    scheme
  • g2    scheme
  • gb2    scheme
  • get-fluid-cube-2    xtlang
  • get_new_pos2    xtlang
  • get_touch_id    xtlang
  • get_touch_x    xtlang
  • get_touch_y    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • give-token    scheme
  • gl_print_error_no_msg    xtlang
  • gl_print_error_with_msg    xtlang
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang
  • glfw_print_primary_monitor_details    xtlang
  • global_transform2d    xtlang
  • godot_global_get_singleton    xtlang
  • godot_variant_new_rect2    xtlang
  • godot_variant_new_transform2d    xtlang
  • godot_variant_new_vector2    xtlang
  • godot_variant_new_vector3    xtlang
  • godot_vector2_new    xtlang
  • godot_vector2_pvar    xtlang
  • godot_vector2_set_x    xtlang
  • godot_vector2_set_y    xtlang
  • godot_vector2_var    xtlang
  • godot_vector3_new    xtlang
  • godot_vector3_pvar    xtlang
  • godot_vector3_var    xtlang
  • gui_find_leaf_postorder    xtlang
  • h2    scheme
  • half_rectangular_window_func2    xtlang
  • hc2    scheme
  • histogram    xtlang
  • histogram    xtlang
  • ho2    scheme
  • host_to_ip    xtlang
  • ht2    scheme
  • ht2    scheme
  • impc:aot:insert-forms    macro
  • impc:compiler:print-already-bound-error    scheme
  • impc:compiler:print-bind-func-details-to-log    scheme
  • impc:compiler:print-binding-details-to-log    scheme
  • impc:compiler:print-dylib-loading-details-to-log    scheme
  • impc:compiler:print-lib-binding-details-to-log    scheme
  • impc:compiler:print-no-valid-forms-for-generic-error    scheme
  • impc:compiler:print-polying-details-to-log    scheme
  • impc:ir:compiler:make-vector    scheme
  • impc:ir:compiler:vector-ref    scheme
  • impc:ir:compiler:vector-set    scheme
  • impc:ir:compiler:vector-shuffle    scheme
  • impc:ir:get-type-from-pretty-vector    scheme
  • impc:ir:get-vector-type-from-str    scheme
  • impc:ir:regex-structs-or-atoms    scheme
  • impc:ir:vector?    scheme
  • impc:ti:add-types-to-source    scheme
  • impc:ti:add-types-to-source-atom    scheme
  • impc:ti:bitwise-not-to-eor    scheme
  • impc:ti:block:check-for-free-syms    scheme
  • impc:ti:check-to-update-generic-vars    scheme
  • impc:ti:compile-type-dataconstructors    scheme
  • impc:ti:make-vector-check    scheme
  • impc:ti:numeric-cast-operator    scheme
  • impc:ti:println2    scheme
  • impc:ti:sprintln2    scheme
  • impc:ti:try-to-resolve-named-types    scheme
  • impc:ti:vector-ref-check    scheme
  • impc:ti:vector-set-check    scheme
  • impc:ti:vector-shuffle-check    scheme
  • init_lv2_amp    xtlang
  • input_80211    xtlang
  • integrator_c    xtlang
  • interp2d    xtlang
  • is_touch_down    xtlang
  • is_touch_move    xtlang
  • is_touch_palm    xtlang
  • is_touch_pen    xtlang
  • is_touch_up    xtlang
  • json_obj_iterator    xtlang
  • kinect-smooth-params    xtlang
  • kinect_stop    xtlang
  • l2    scheme
  • lfo2_cc    xtlang
  • lilv_print_all_lv2_plugins    xtlang
  • list->vector    scheme
  • loop2    scheme
  • loop2    scheme
  • lt2    scheme
  • lt2    xtlang
  • m2    scheme
  • ma2    scheme
  • ma2    scheme
  • make-vector-with-proc    scheme
  • map_test2    xtlang
  • mat4_to_mat3    xtlang
  • mat4_to_mat3    xtlang
  • match-vector    scheme
  • midi2frq    scheme
  • midi_msg    xtlang
  • midi_read_msg    xtlang
  • mt2    scheme
  • mt2    scheme
  • multi-list-combination-2    scheme
  • my-test-12    xtlang
  • my-test-2    xtlang
  • my-test20    xtlang
  • my-test25    xtlang
  • my-test26    xtlang
  • my-test27    xtlang
  • my-test28    xtlang
  • my-test29    xtlang
  • my_button_cb    xtlang
  • my_slider2D_cb    xtlang
  • ndiff2    xtlang
  • ndiff2    xtlang
  • node_reply_loop_stop    xtlang
  • nth_tailr    xtlang
  • num_f32_div    xtlang
  • num_f32_div    xtlang
  • num_f32_minus    xtlang
  • num_f32_minus    xtlang
  • num_f32_mul    xtlang
  • num_f32_mul    xtlang
  • num_f32_plus    xtlang
  • num_f32_plus    xtlang
  • num_i32_div    xtlang
  • num_i32_div    xtlang
  • num_i32_minus    xtlang
  • num_i32_minus    xtlang
  • num_i32_mul    xtlang
  • num_i32_mul    xtlang
  • num_i32_plus    xtlang
  • num_i32_plus    xtlang
  • ocv_VideoCapture2    xtlang
  • ocv_channels    xtlang
  • ocv_copyto    xtlang
  • ocv_imread2    xtlang
  • ocv_imshow    xtlang
  • ocv_imshow    scheme
  • ocv_imshow1    xtlang
  • ocv_imwrite2    xtlang
  • ocv_namedWindow2    xtlang
  • ocv_read2    xtlang
  • ocv_resize2    xtlang
  • ocv_total    xtlang
  • on_register_custom_schemes    xtlang
  • osc2_cc    xtlang
  • osc_receive_7020    xtlang
  • output_80211    xtlang
  • p2    scheme
  • pa_params_for_input_device    xtlang
  • pa_params_for_output_device    xtlang
  • pat2    scheme
  • pc:diatonic    scheme
  • pcg32_boundedrand_r    xtlang
  • pm_current_time_in_ms    xtlang
  • pmap_test2    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart    xtlang
  • pol_to_cart2    xtlang
  • pr2    scheme
  • pr2    scheme
  • rados-connect-to-cluster    xtlang
  • rados-connect-to-pool    xtlang
  • rc2    scheme
  • rc2    scheme
  • reduce-ptrdepth-to-zero    scheme
  • rms_power    xtlang
  • rs2    scheme
  • rtod    xtlang
  • rtof    xtlang
  • rtoi1    xtlang
  • rtoi16    xtlang
  • rtoi32    xtlang
  • rtoi64    xtlang
  • rtoi8    xtlang
  • scientific-pitch-notation-to-midi-number    scheme
  • scramble_80211    xtlang
  • sd2    scheme
  • send-skeleton-osc    xtlang
  • set_lfo2    scheme
  • set_lfo2_type    scheme
  • sexpr2cas    scheme
  • sf_channels    xtlang
  • sf_channels_from_file    xtlang
  • sf_read_file_into_buffer    xtlang
  • sf_set_channels    xtlang
  • shadertoy-loop    scheme
  • sn2    scheme
  • sqr2    xtlang
  • stop    xtlang
  • stop-note    scheme
  • stop_load    xtlang
  • stop_running    xtlang
  • stop_sim    xtlang
  • store_frame_OLA    xtlang
  • store_frame_PV    xtlang
  • store_frame_iPL    xtlang
  • store_frame_sPL    xtlang
  • string->anyatom    scheme
  • sys:host-to-ip    scheme
  • t2    scheme
  • t2    scheme
  • t:vector?    scheme
  • take-token    scheme
  • tb2    scheme
  • test2    xtlang
  • test_g_array2    xtlang
  • test_stream_2    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_help    xtlang
  • toString_return    xtlang
  • toString_space    xtlang
  • top    xtlang
  • topclock-bpm    scheme
  • topclock-election    scheme
  • topclock-receive    scheme
  • topclock-streamer    scheme
  • topclock-sync    scheme
  • topclock-variable    scheme
  • toplap-clock-election    scheme
  • toplap-clock-sync    scheme
  • variable-constructor    scheme
  • vector->list    scheme
  • vector-equal?    scheme
  • vector-fill!    scheme
  • vector-test2    xtlang
  • vector_gfx:XTMRENDERCB    xtlang
  • vector_test    xtlang
  • vector_test_a    xtlang
  • wb2    scheme
  • win32_list_dir    xtlang
  • with-input-output-from-to-files    scheme
  • with-output-to-file    scheme
  • world_set_to_checkerboard    xtlang
  • world_set_to_inverse    xtlang
  • xt_pcg32_random    xtlang
  • xt_pcg32_random_r    xtlang
  • xt_pcg32_srandom    xtlang
  • xt_pcg32_srandom_r    xtlang
  • xtm_color32_alpha    xtlang
  • xtm_color32_blue    xtlang
  • xtm_color32_green    xtlang
  • xtm_color32_red    xtlang
  • xtm_frame_data_to_tex    xtlang
  • xtm_projecton_texture_weight    xtlang
  • xtm_set_color32    xtlang
  • xtm_set_color32_alpha    xtlang
  • xtm_set_color32_blue    xtlang
  • xtm_set_color32_green    xtlang
  • xtm_set_color32_red    xtlang
  • xtm_stop_note    xtlang
  • xtm_vg_create_contexti32    xtlang
  • xtmdoc-export-caches-to-json    scheme
  • xtmfrag2    scheme
  • xtmvert2    scheme