render-mode/sinewave-mode [ Render Modes ]

[ Top ] [ render-mode ] [ Render Modes ]

Name

 sinewave-mode

File

 rm-sinewave-mode.lsp

Description

 A basic render-mode for additive synthesis. Will render events as sinewaves
 to a soundfile, using the pitch, duration and start-time-slot. If amplitude
 is set, sinewaves will be scaled. Otherwise the amplitude defaults to 1.
 (The final result will be scaled anyway to prevent clipping.)

Output Format

 :sound

Required Slots

 pitch, duration, start-time

Optional Slots

 amplitude

Dependencies

 :clm

Synopsis

#+clm
(make-render-mode sinewave-mode :sound
                  :required-slots
                  (duration start-time pitch)
                  :optional-slots
                  (amplitude)
                  :options
                  ((sample-rate 44100))
                  :required-packages (:clm)