sf_samples_from_file   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm

Implementation

(bind-func sf_samples_from_file
  "get the total number of samples (* frames channels) from an audio file"
  (lambda (filename)
    (let ((info:SF_INFO* (salloc))
          (audiofile (sf_open filename SFM_READ info)))
      (if (null? audiofile)
          -1
          (begin
            (sf_close audiofile)
            (* (sf_frames info)
               (convert (sf_channels info))))))))


Back to Index

Similar Entries

  • -clock:metro-from-host-    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • -clock:metro-from-host-    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • AudioBuffer_from_aiff    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • AudioBuffer_from_wave    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • _playbin_bus_call:GstBusFunc    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mediaplayer.xtm
  • aiProcess_PreTransformVertices    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • aiProcess_TransformUVCoords    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • ai_load_ogl_texture_from_buffer    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • analogue_remove_file    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue.xtm
  • audiofile_16bitPCM_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_16bitPCM_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_24bitPCM_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_24bitPCM_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_aiff_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_copy_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_float_to_sample_be    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_float_to_sample_le    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • audiofile_wave_read_samples    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • bitmap_from_window    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/win32.xtm
  • call-with-input-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • call-with-output-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • cerberus_frq_from_val    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_octave_from_val    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_remove_file    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • clock->samples    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock:offset-from-server    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • comb_fb_from_rtsixty    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • cpTransformAxialScale    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformBB    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformBoneScale    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformInverse    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformMult    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformNew    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformNewTranspose    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformOrtho    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformPoint    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformRigid    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformRigidInverse    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformRotate    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformScale    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformTranslate    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformVect    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformWrap    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • cpTransformWrapInverse    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • file->string    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • file-exists?    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • file_size    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • file_word_count    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • filename-from-path    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • filename-strip-extension    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • fill_buffer_with_file    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • fits-file-print    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fitslib.xtm
  • fits-file-print    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fits.xtm
  • fits-open-file    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fitslib.xtm
  • fits-open-file    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/fits.xtm
  • frq_from_val    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • frq_from_val    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/channel_strip.xtm
  • get_file_name    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/win32.xtm
  • glew-name-from-gl-name    scheme    /digego/extempore/tree/v0.8.9/libs/external/gl/glcore-glew.xtm
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_set_compatibility_profile    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_set_core_profile    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_position_callback:GLFWwindowposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • global_transform2d    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • godot_variant_new_transform    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • godot_variant_new_transform2d    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • impc:aot:compile-xtm-file    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ir:compiler:closure-from-getter    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:convert-from-pretty-types    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-arity-from-pretty-closure    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-array-type-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-closure-type-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-function-type-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-tuple-type-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-type-from-pretty-array    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-type-from-pretty-closure    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-type-from-pretty-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-type-from-pretty-str-rec    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-type-from-pretty-tuple    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-type-from-pretty-vector    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-type-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:get-vector-type-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:first-transform    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reverse-set-bangs-from-reified    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:tuple-list-from-pretty-tuple-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • load_blep_tables_from_blob    unknown    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • octave_from_val    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • pc:from-intervals    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • pc:from-steps    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • pc:scale-from-chord    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • pc:scale-from-pc    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • playbin_bus_call:GstBusFunc    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • rmap_helper_lst_sym_transform    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern-language.xtm
  • sampler-parse-filename    scheme    /digego/extempore/tree/v0.8.9/libs/external/instruments_ext-scm.xtm
  • sampler-parse-midinote-filename    scheme    /digego/extempore/tree/v0.8.9/libs/external/instruments_ext-scm.xtm
  • sampler-parse-spn-filename    scheme    /digego/extempore/tree/v0.8.9/libs/external/instruments_ext-scm.xtm
  • samples->clock    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • sf_channels    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_channels_from_file    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_format    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_frames    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_frames_from_file    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_print_audio_file_info    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_read_file_into_buffer    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_samplerate    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_sections    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_seekable    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_set_channels    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_set_format    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_set_frames    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_set_samplerate    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_set_sections    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sf_set_seekable    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • sfixed    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm
  • string_list_from_file    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • string_list_from_string    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm
  • sys:compile-init-ll-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • sys:compile-ll-from-str    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • sys:file-path-components    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • sys_file_append    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_close    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_copy    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_datasync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_datasync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_eof    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_flush    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_getc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_gets    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_link    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_mktemp    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_open    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_open_stderr    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_open_stdin    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_open_stdout    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_putc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_puts    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_read    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_remove    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_rename    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_seek    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_sync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_ungetc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_file_write    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_filepath_root    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_g_file_test    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glib.xtm
  • v4fabsf    xtlang    /digego/extempore/tree/v0.8.9/libs/core/vaudio_dsp.xtm
  • vcosf4    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • vcosf4    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • with-input-from-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • with-input-output-from-to-files    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • with-output-to-file    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • xtmdoc-get-args-from-form    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm