_sin   xtlang


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

Implementation

;; x values must fall within the range -PI ... PI
(bind-func _sin
  (let ((i 0)
        (p (v4val 0.225))
  (b (v4val (/ 4.0 PIf)))
        (y:/4,float/* (zalloc))
  (c (v4val (/ -4.0 (* PIf PIf)))))
    (lambda (x:/4,float/*)
      (pset! y 0 (+ (* b x) (* c x (v4fabsf x))))
      (pset! y 0 (+ (* p (- (* y (v4fabsf y)) y)) y))
      y)))


Back to Index

Similar Entries

  • Casin    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Casinh    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Csin    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Csinh    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • PARAM_SINE    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_SINE    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • fastsin    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • godot_global_get_singleton    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libgodot.xtm
  • impc:compiler:print-missing-generic-type-error    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:compiler:print-missing-identifier-error    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:remove-single-element-lists    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • on_before_command_line_processing    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • parabolicSineHP    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • parabolicSineLP    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • qsinr    macro    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • sinr    macro    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • testvsinecos    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • vsinf4    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • vsinf4    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm