OMChroma Reference

SMPL-4

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 = 31.0]
- skip (Minimum) starting point when reading an audio file [sec]
[default = 0.5]
- aenv Amplitude Envelope [GEN]
[default = Instance: GEN07]
- win (Minimum) excitation (rise/tex) time of the local attack (FOF/grain) [sec]
[default = 0.01]

Description:

;=============================================================================
; SMPL-4.ORC
; SAMPLER STORING A SOUND FILE INTO A DEFERRED TABLE [GEN01] / MONO
; READING SAMPLES FROM THE TABLE / NOT NORMALIZED
; AMPLITUDE ENVELOPE WITH POSCIL3 + COSINE IN-OUT
; THIS SAMPLER WILL START THE FILE AGAIN, IF IT REACHES THE END OF THE TABLE
; SO BEWARE OF LONG NOTES OR HIGH TRANSPOSITION FACTORS
; SAME AS SMPL-3.ORC, BUT WITH RELATIVE STARTING POINT
;=============================================================================

; 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 amplitude [linear, >0.0-1000.0 or dB, <= 0.0]
; p5 = transposition factor [1=same freq as original]
; p6 = sound file [GEN01]
; p7 = starting point in file [sec]
; p8 = amp envelope [GEN]
; p9 = duration of the local attack/decay time [sec]
;-----------------------------------------------------------------------------
; COMPULSORY GEN FUNCTIONS :
; f19 sigmoid rise/decay
;_____________________________________________________________________________




see Csound Tables Conventions


Auto doc generation by OpenMusic 6.6 © 2010 IRCAM