OMChroma Reference

SMPL-1

CLASS SLOTS:
- self Synthesis event [default = NIL]
- numcols Number of components [int] [default = 1]
- action-time Event offset [s] [default = 0]
- user-fun A lambda function applied to each component [default = NIL]

ARRAY SLOTS (KEYWORDS):
- e-dels Entry Delays [sec] [default = 0]
- durs Durations [sec] [default = 1]
- amp Maximum Amplitude [lin, >0.0-1000.0 or dB <= 0.0]
[default = 0.0]
- f0 (Minimum) fundamental frequency [Hz]
[default = 1.0]
- afil Audio file [name, with possible path, sound, string, pathname or GEN01]
[default = File: santuri_96]
- skip (Minimum) starting point when reading an audio file [sec]
[default = 0.0]
- aenv Amplitude Envelope [GEN]
[default = Instance: GEN07]
- win (Minimum) excitation (rise/tex) time of the local attack (FOF/grain) [sec]
[default = 0.01]
- wrap Wrap flag: 0=locations beyond EOF produce silence, <>0=wrap from beg of file
[default = 1]

Description:

;=============================================================================
; SMPL-1.ORC
; SAMPLER READING FROM A SOUND FILE WITH AUTOMATIC SR CONVERSION / MONO
; READING SAMPLES THROUGH DISKIN2, NO LOOP
; CONTROLLABLE WRAP
; AMPLITUDE ENVELOPE WITH POSCILI + COSINE IN-OUT
; FIXED TRANSPOSITION
;=============================================================================

; Timbre: Reading from a sound file, with transposition
; Synthesis: Sampler
; Coded: ms 3/09

; NB: NEW STRUCTURE FOR THE AMPLITUDES FROM AUGUST 2008!
; Positive value > 0.0 : linear amplitude (>0.0-1000.0)
; 0.0 or negative value : amplitude in dB (0 = maximum value)

; The apparently arbitrary amplitude range (0-1000, rather than 0-1)
; avoids printing small values with exponential notation
; Default SR = 96000, recommended precision: 24 bits

;-----------------------------------------------------------------------------
; p1 = instrument number
; p2 = action time [sec]
; p3 = duration [sec]
; p4 = max amp [linear, >0.0-1000.0 or dB, <= 0.0]
; p5 = transposition factor [1=same freq as the file]
; p6 = sound file [name]
; p7 = starting point in file [sec]
; p8 = amp envelope [GEN, straight line]
; p9 = duration of the local attack/decay [sec]
; p10 = wrap [0 or non 0]
;-----------------------------------------------------------------------------
; COMPULSORY GEN FUNCTIONS :
; f19 sigmoid rise/decay
;_____________________________________________________________________________




see Csound Tables Conventions


Auto doc generation by OpenMusic 6.6 © 2010 IRCAM