file_word_count   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm

Implementation

(bind-func file_word_count
  (lambda (filename)
    (letz
        ((buflen 1000000000)
         (buf:i8* (halloc buflen))
         (wc_dict null))
      (if (> (fill_buffer_with_file buf filename buflen) 0)
          (begin (set! wc_dict (word_count (String buf) (String " ,.\t\n")))
                 void))
      (free buf)
      (println "length:" (length wc_dict))
      (println (take wc_dict 100))
      (if (null? wc_dict) wc_dict (cdr wc_dict)))))


Back to Index

Similar Entries

  • aiProcess_SplitByBoneCount    scheme    /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
  • 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
  • cell_count_neighbors    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • cerberus_remove_file    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.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
  • 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
  • get_file_name    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/win32.xtm
  • get_frame_count    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.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
  • impc:aot:compile-xtm-file    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:word-downcase    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:word-upcase    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • pm_count_devices    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.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
  • sf_channels_from_file    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_samples_from_file    xtlang    /digego/extempore/tree/v0.8.9/libs/external/sndfile.xtm
  • string_list_from_file    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.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
  • 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
  • word_count    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/word_count.xtm