_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
  • Casinh    xtlang
  • Csin    xtlang
  • Csinh    xtlang
  • PARAM_SINE    scheme
  • PARAM_SINE    scheme
  • fastsin    xtlang
  • godot_global_get_singleton    xtlang
  • impc:compiler:print-missing-generic-type-error    scheme
  • impc:compiler:print-missing-identifier-error    scheme
  • impc:ti:remove-single-element-lists    scheme
  • on_before_command_line_processing    xtlang
  • parabolicSineHP    xtlang
  • parabolicSineLP    xtlang
  • qsinr    macro
  • sinr    macro
  • testvsinecos    xtlang
  • vsinf4    xtlang
  • vsinf4    xtlang