LR_combine   xtlang


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

Implementation

;This function interleaves 2 vectors.
(bind-func LR_combine:[void,float*,float*,float*,i64]*
  (lambda (frame:float* left:float* right:float* buffer_size:i64)
    (let ((n:i64 0))
      (dotimes (n (/ buffer_size 2))
        (pset! frame (* n 2) (pref left n))
        (pset! frame (+ (* n 2) 1) (pref right n)))
      void)))


Back to Index

Similar Entries

  • CmulR    xtlang
  • LR_split    xtlang
  • LR_to_MS_2_channels    xtlang
  • LR_to_MS_3_channels    xtlang
  • MS_to_LR_2_channels    xtlang
  • MS_to_LR_3_channels    xtlang
  • impc:compiler:print-already-bound-error    scheme
  • nth_tailr    xtlang