AudioBuffer   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm

Implementation

(bind-func AudioBuffer
  (lambda (filepath)
    (cond ((rmatch "\\.wave?$" filepath)
           (AudioBuffer_from_wave filepath))
          ((rmatch "\\.aiff?$" filepath)
           (AudioBuffer_from_aiff filepath))
          (else
           (println "native xtlang audiofile reader only works for uncompressed aiff and wave files")
           null))))


Back to Index

Similar Entries