vibr — Easier-to-use user-controllable vibrato.


Easier-to-use user-controllable vibrato.


kout vibr kAverageAmp, kAverageFreq, ifn


ifn -- Number of vibrato table. It normally contains a sine or a triangle wave.


kAverageAmp -- Average amplitude value of vibrato

kAverageFreq -- Average frequency value of vibrato (in cps)

vibr is an easier-to-use version of vibrato. It has the same generation-engine of vibrato, but the parameters corresponding to missing input arguments are hard-coded to default values.


Here is an example of the vibr opcode. It uses the file vibr.csd.

Example 1208. Example of the vibr opcode.

See the sections Real-time Audio and Command Line Flags for more information on using command line flags.

; Select audio/midi flags here according to platform
-odac      ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o vibr.wav -W ;;; for file output any platform

sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

instr 1

kaverageamp  init 500
kaveragefreq init 4
kvib vibr kaverageamp, kaveragefreq, 1
asig poscil .8, 220+kvib, 1		;add vibrato
     outs asig, asig

f 1 0 16384 10 1       ;sine wave

i 1 0 10


See also

Basic Oscillators


Author: Gabriel Maldonado

New in Version 4.15