pc:scale   scheme


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

Implementation

;; returns a scale type based on a given root
(define pc:scale
   (lambda (root type)
     (if (string? type) (set! type (string->symbol type)))
      (if (assoc type *pc:scales*)
          (let loop ((l (cdr (assoc type *pc:scales*)))
                     (current (modulo root 12))
                     (newlst '()))
             (if (null? l)
                 (reverse (cons current newlst))
                 (loop (cdr l) (modulo (+ current (car l)) 12) (cons current newlst))))
          (begin (log-info "Scale type not found." *pc:scales*) #f))))


Back to Index

Similar Entries

  • Vscale    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • cpTransformAxialScale    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
  • cpTransformScale    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpTransform.xtm
  • dl_base_frq_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_base_frq_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter1_frq_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter1_frq_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter2_frq_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter2_frq_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • fill_pos_scale_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • get-scale-scale    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern-language.xtm
  • get-scale-stepsize    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern-language.xtm
  • greyscale-frag    scheme    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline-scm.xtm
  • pc:chord->scale    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
  • scale    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern-language.xtm
  • scale    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • scale_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • scale_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • set-scale-x    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • set-scale-y    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • xtm_path_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_path_scaled    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_scale_and_draw_vgimage    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_scale_and_draw_vgimaged    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_vgimage_scale    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtm_vgimage_scaled    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm