cerberus_reset_lfos   xtlang


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

Implementation

(bind-func cerberus_reset_lfos
  (lambda (lfos:|4,|8,[SAMPLE,i64,i64]*||* idx:i64 frequency:SAMPLE onecycleinhz:SAMPLE phases:|4,SAMPLE|* mod_options:|4,i32|*)
    (let ((obj (aref-ptr lfos idx))
          (sine (cref (cast (aref obj 0) [void]*) osc [void]*))
          (saw (cref (cast (aref obj 1) [void]*) osc [void]*))
          (pulse (cref (cast (aref obj 2) [void]*) osc [void]*))
          (tri (cref (cast (aref obj 3) [void]*) osc [void]*))
          (opts (aref mod_options idx))
          (notedur_value (if (> (& opts LFO_OPT_NOTEDUR) 0) onecycleinhz 1.0))
          (amod_value (if (> (& opts LFO_OPT_FRQ_TO_AMP) 0) frequency 1.0))
          (fmod_value (if (> (& opts LFO_OPT_FRQ_TO_FRQ) 0) frequency 1.0)))
      ;; only the above need a phases
      (sine.phase (aref phases idx))
      (saw.mod (aref phases idx))
      (saw.pulse (aref phases idx))
      (saw.tri (aref phases idx))
      ;; also set amod + fmod
      (cset! (cast (aref obj 0) [void]*) amod amod_value float)
      (cset! (cast (aref obj 0) [void]*) fmod fmod_value float)
      (cset! (cast (aref obj 1) [void]*) amod amod_value float)
      (cset! (cast (aref obj 1) [void]*) fmod fmod_value float)
      (cset! (cast (aref obj 2) [void]*) amod amod_value float)
      (cset! (cast (aref obj 2) [void]*) fmod fmod_value float)
      (cset! (cast (aref obj 3) [void]*) amod amod_value float)
      (cset! (cast (aref obj 3) [void]*) fmod fmod_value float)


Back to Index

Similar Entries

  • analogue-load-preset    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_fileio-scm.xtm
  • analogue-reset    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_fileio-scm.xtm
  • analogue-save-preset    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_fileio-scm.xtm
  • analogue_reset    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue.xtm
  • cerberus-load-preset    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_fileio-scm.xtm
  • cerberus-load-state    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_fileio-scm.xtm
  • cerberus-reset    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_fileio-scm.xtm
  • cerberus-save-preset    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_fileio-scm.xtm
  • cerberus_amp_pitch_env_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_create_lfos    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • cerberus_delay_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_extras_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_filter_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_filter_env_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_flanger_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_frq_from_val    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_fx    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • cerberus_get_filtertype    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_get_lfo_waveform    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_get_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • cerberus_get_noisetype    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_get_waveform    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_get_wt_expr    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_fileio-scm.xtm
  • cerberus_lfo1_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_lfo2_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_lfo3_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_lfo4_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_logRamp    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_main_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_matrix_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_moog_ladder_inlined    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • cerberus_note    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • cerberus_octave_from_val    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_osc1_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_osc2_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_osc3_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_osc4_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_remove_file    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • cerberus_reset    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus.xtm
  • cerberus_reverb_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • cerberus_set_mod_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • cerberus_sub_noise_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • gui_reset    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • impc:compiler:reset-jit-compilation-queue    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:reset-builtin-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-closure-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-genericfunc-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-generictype-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-globalvar-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-namedtype-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-nativefunc-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-polyfunc-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-polytype-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-typealias-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:reset-xtmacro-cache    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • reset-zone    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/xtmcv.xtm
  • reset_view_matrix    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/triangle.xtm
  • reset_zone    xtlang    /digego/extempore/tree/v0.8.9/libs/base/base.xtm
  • world_reset    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/game-of-life.xtm
  • xtm_vg_reset_matrices    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/openvg.xtm
  • xtmtest-reset-results    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • xtmtest-reset-results    scheme    /digego/extempore/tree/v0.8.9/libs/core/test.xtm