find_previous_peak   xtlang


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

Implementation

;finds the peak of the region in the previous frame to which the current peak belongs to
(bind-func find_previous_peak
  (lambda (current_peak:i64 prev_peaks_array:i64* prev_lower_bound:i64* prev_upper_bound:i64* prev_size:i64)
    (let ((n:i64 0)
          (prev_peak:i64 0))
      (cond ((= (is_empty prev_peaks_array prev_size) 0)
              (while (= (and (<= (pref prev_lower_bound n) current_peak) (<= current_peak (pref prev_upper_bound n))) 0)
                (set! n (+ n 1)))
              (set! prev_peak (pref prev_peaks_array n)))
            (else
               (set! prev_peak -1)))
      prev_peak)))


Back to Index

Similar Entries

  • PARAM_Peak    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_Peak    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • Widget_find_inorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_find_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_find_preorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • aiProcess_FindDegenerates    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • aiProcess_FindInstances    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • aiProcess_FindInvalidData    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • ai_find_matching_node    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • cl:find-if    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • find_node    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • find_peaks    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • find_peaks_log    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • find_sexprs    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/cas.xtm
  • find_sqr_exprs    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/cas.xtm
  • get_find_handler    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • gui_find_leaf_inorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_preorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_next_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_parent    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_widget_with_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • iffchunk_find_dumb    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • iffchunk_find_smart    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • impc:compiler:print-could-not-resolve-types_find-expr    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:find-all-vars    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:find-unresolved-simple-types    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • instrument_find_note    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments.xtm
  • pc:find-closest    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • xtm_find_bone    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm