cerberus_filter_env_cc   xtlang


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

Implementation

(bind-func cerberus_filter_env_cc
  (lambda ()
    (let ((val 0.0:f)
          (envlgth 1.0:f)
          (fenv (vector_ref 0.0:f 0.0 1.0 0.0)))
      (lambda (inst offset:i32 cc:i32 value:i32)
        ;; (println 'cerberus_filter_cc cc value)
        (set! val (/ (i32tof value) 127.0))
        (cond ((= cc (+ offset 0)) ;; filter env attack
               (vset! fenv 0 (* val 127.0))
               (set_filter_env inst (* envlgth (vref fenv 0)) (* envlgth (vref fenv 1)) (vref fenv 2) (* envlgth (vref fenv 3))))
              ((= cc (+ offset 1)) ;; filter env decay
               (vset! fenv 1 (* val 127.0 10.0))
               (set_filter_env inst (* envlgth (vref fenv 0)) (* envlgth (vref fenv 1)) (vref fenv 2) (* envlgth (vref fenv 3))))
              ((= cc (+ offset 2)) ;; filter env sustain
               (vset! fenv 2 val)
               (set_filter_env inst (* envlgth (vref fenv 0)) (* envlgth (vref fenv 1)) (vref fenv 2) (* envlgth (vref fenv 3))))
              ((= cc (+ offset 3)) ;; filter env release
               (vset! fenv 3 (* val 127.0 50.0))
               (set_filter_env inst (* envlgth (vref fenv 0)) (* envlgth (vref fenv 1)) (vref fenv 2) (* envlgth (vref fenv 3))))
              ((= cc (+ offset 4))
               (set! envlgth (* 127.0 val))
               (set_filter_env inst (* envlgth (vref fenv 0)) (* envlgth (vref fenv 1)) (vref fenv 2) (* envlgth (vref fenv 3))))
              ((= cc (+ offset 5)) ;; filter env amt (frq)
               (set_filter_env_amt inst (cerberus_frq_from_val val)))
              ((= cc (+ offset 6)) ;; follow note frq (%) i.e. (+ cutoff (* frequency value))
               (set_filter_env_follow_frq inst val))
              ((= cc (+ offset 7)) ;; follow amp i.e. (+ cutoff (* amplitude value))
               (set_filter_env_follow_amp inst val)))))))


Back to Index

Similar Entries

  • Cconj    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Ccos    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Ccosh    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Ccot    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Ccoth    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Ccsc    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • Ccsch    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/gsl.xtm
  • MCC    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.xtm
  • PARAM_FILTER_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_FILTER_FRQ    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_FILTER_FRQ    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PARAM_FILTER_RES    scheme    /digego/extempore/tree/v0.8.9/libs/core/instruments-scm.xtm
  • PARAM_FILTER_RES    scheme    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • PmEvent_cc_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • amp_pitch_env_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • analogue_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • call/cc    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • cc0    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • cc1    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • cc2    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • cc3    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • cc4    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.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_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_reset_lfos    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
  • cpShapeFilterNew    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpShape.xtm
  • delay_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • dl_filter1_frq    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter1_frq    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_filter1_res    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter1_res    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter1_type    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter1_type    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter2_frq    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter2_frq    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
  • dl_filter2_res    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter2_res    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter2_type    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • dl_filter2_type    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • env-wrap    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • envelope-segments    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • envelope-segments    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • envelope_c    xtlang    /digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm
  • extras_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • filter    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • filter    scheme    /digego/extempore/tree/v0.8.9/libs/core/pattern-language.xtm
  • filter    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • filter_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • filter_env_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • filter_input    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • filter_inputs    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • filter_lwork    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • filter_output    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • filter_outputs    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • filter_prework    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • filter_rate    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • filter_work    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/stream.xtm
  • flanger_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • get_amp_env    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • get_analogue_synth_cc_name    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/setup.xtm
  • get_filter_env    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • get_filtertype    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • get_pitch_env    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • impc:ir:compile:make-closureenv    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:compile:make-env    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ir:make-struct-str-env    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impromptu_envs    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • init_env_map    xtlang    /digego/extempore/tree/v0.8.9/examples/external/xtmrender6.xtm
  • lfo1_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • lfo2_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • lfo3_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • lfo4_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • main_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • make-envelope    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • make-environment    macro    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • matrix_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • mcc    macro    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • midi-cc    scheme    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • midi_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/channel_strip.xtm
  • midi_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • midi_cc    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/setup.xtm
  • midi_cc    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/midisetup.xtm
  • osc1_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • osc2_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • osc3_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • osc4_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • reverb_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • rtmidi_default_callback:RtMidiCCallback    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • send-midi-cc    scheme    /digego/extempore/tree/v0.8.9/libs/external/portmidi.xtm
  • set_amp_env    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • set_dl_envs    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • set_dl_filter    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • set_filter    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • set_filter_env    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • set_pitch_env    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/instrument_params.xtm
  • shader_setup_convolution_filter    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • shader_update_envmap    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • sub_noise_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • succ    scheme    /digego/extempore/tree/v0.8.9/runtime/init.xtm
  • sys_env_delete    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_env_get    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • sys_env_set    xtlang    /digego/extempore/tree/v0.8.9/libs/external/system.xtm
  • xtm_envmap_as_skybox    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_envmap_init    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_envmap_weight    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm