dsp   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/polysynth.xtm

Implementation

;; let's add some delay (via a stereo pair of delays) to the
;; global audio output
;;
;; NOTE: then 100000 is extra memory for our
;; delays
(bind-func dsp:[SAMPLE,SAMPLE,i64,i64,SAMPLE*]* 1000000
  (let ((delayl (delay_c (convert (* SAMPLERATE 0.25))))
        (delayr (delay_c (convert (* SAMPLERATE 0.33333333)))))
    (lambda (in:SAMPLE time:i64 chan:i64 dat:SAMPLE*)
      (cond ((= chan 0)
             (delayl (+ (* 0.7 (synth in time chan dat))
                        (* 2.0 (saw_synth in time chan dat)))
                     0.5 0.3))
            ((= chan 1)
             (delayr (+ (* 0.7 (synth in time chan dat))
                        (* 2.0 (saw_synth in time chan dat)))
                     0.5 0.3))
            (else 0.0)))))


Back to Index

Similar Entries

  • _dsp:set!    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_101.xtm
  • dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_101.xtm
  • dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_101.xtm
  • dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_101.xtm
  • dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/lv2.xtm
  • dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/polysynth.xtm
  • dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/TSM_example.xtm
  • dsp1:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/mtaudio.xtm
  • dsp1:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • dsp1:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/convolution_reverb.xtm
  • dsp2:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/mtaudio.xtm
  • dsp2:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • dsp3:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/mtaudio.xtm
  • dsp3:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • dsp4:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • dsp5:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/topclock_metro.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/covers.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_101.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/midi_synth.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/scheduler.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/synth.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/core/fmsynth.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/rtmidi.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/spectral_meter.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/convolution.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/going-native.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/spectrogram.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/sampler.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/sing_a_song.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/electrofunk.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/granulator.xtm
  • dsp:DSP    xtlang    /digego/extempore/tree/v0.8.9/examples/external/audio_player.xtm
  • dsp:VDSP    xtlang    /digego/extempore/tree/v0.8.9/libs/core/vaudio_dsp.xtm
  • dsp:set!    macro    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • dsp_load    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • dsp_randn    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audio_dsp.xtm
  • dsp_randn    xtlang    /digego/extempore/tree/v0.8.9/libs/core/vaudio_dsp.xtm
  • dspmt:DSPMT    xtlang    /digego/extempore/tree/v0.8.9/examples/core/mtaudio.xtm
  • dspmt:DSPMT    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • dspsum:DSPMT    xtlang    /digego/extempore/tree/v0.8.9/examples/external/convolution_reverb.xtm
  • pure_dsp    xtlang    /digego/extempore/tree/v0.8.9/examples/core/audio_streams.xtm