make_mono   xtlang


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

Implementation

;make a buffer mono in place
(bind-func make_mono
  (lambda (buffer:float* buffer_size:i64)
    (let ((n:i64 0))
      (dotimes (n (/ buffer_size 2))
        (pset! buffer (* n 2) (/ (+ (pref buffer (* n 2)) (pref buffer (+ (* n 2) 1))) 2.0))
        (pset! buffer (+ (* n 2) 1) (pref buffer (* n 2))))
      void)))


Back to Index

Similar Entries

  • CV_MAKE_TYPE    xtlang
  • aiProcess_MakeLeftHanded    scheme
  • cl:make-list    scheme
  • cvMakeColour    xtlang
  • glfw_make_context_current    xtlang
  • gui_set_monokai_color_theme    xtlang
  • gui_set_monokai_opensans_theme    xtlang
  • impc:ir:compile:make-closure    scheme
  • impc:ir:compile:make-closureenv    scheme
  • impc:ir:compile:make-env    scheme
  • impc:ir:compile:make-static    scheme
  • impc:ir:compiler:make-array    scheme
  • impc:ir:compiler:make-tuple    scheme
  • impc:ir:compiler:make-vector    scheme
  • impc:ir:make-arglist-str    scheme
  • impc:ir:make-const-string    scheme
  • impc:ir:make-function-str    scheme
  • impc:ir:make-string    scheme
  • impc:ir:make-struct-str    scheme
  • impc:ir:make-struct-str-env    scheme
  • impc:ti:get-mono-name    macro
  • impc:ti:make-array-check    scheme
  • impc:ti:make-tuple-check    scheme
  • impc:ti:make-vector-check    scheme
  • impc:ti:nativef-generics-make-gtypes-unique    scheme
  • make-bezier    scheme
  • make-envelope    xtlang
  • make-environment    macro
  • make-instrument    macro
  • make-list    scheme
  • make-list-with-proc    scheme
  • make-metre    scheme
  • make-metro    scheme
  • make-rhythm    scheme
  • make-timeline    scheme
  • make-vector-with-proc    scheme
  • make_bodies    xtlang
  • make_instrument    xtlang
  • make_instrument    xtlang
  • make_static_scheme_wrapper_ir    scheme
  • make_window_transparent    xtlang
  • match-result:make    scheme
  • matcher:make    scheme
  • my-inc-maker    xtlang
  • my-inc-maker-wrapper    xtlang
  • pc:make-chord    scheme
  • pc:make-chord-fixed    scheme
  • plet-make-bindings    scheme
  • set_monophonic    xtlang
  • sys_dir_make    xtlang
  • sys_dir_make_recursive    xtlang
  • xtm_make_model    xtlang