OMChroma Reference

SMPL-6

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 = 2.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]
- lpbeg Starting loop point [%/samples]
[default = 0.3]
- lpend Ending loop point [%/samples]
[default = 0.6]
- win (Minimum) excitation (rise/tex) time of the local attack (FOF/grain) [sec]
[default = 0.3]
- mode Formant freq mode [0=no gliss within each grain]
[default = 1]

Description:

;=============================================================================
; SMPL-6.ORC
; SAMPLER READING FROM A DEFERRED TABLE WITH LOOP / MONO
; AMPLITUDE ENVELOPE WITH POSCIL
; FIXED TRANSPOSITION
; SAME AS SMPL-5.ORC, BUT WITH RELATIVE STARTING AND LOOP POINTS
;=============================================================================

; Timbre: Reading a sound file into a deferred table, with transposition
; Synthesis: Sampler, flooper2
; Coded: ms 3/09

; This instrument will loop through a deferred GEN01 table which will match
; the exact duration of the sound file.
; If the duration in the score is longer than the file, it will read the file
; until loop-end, then loop between loop-beg and loop-end until the end
; of the duration.

; 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 = frequency [>0, 1=same as original, 0.5=octave below, 2=octave above]
; p6 = sound file [GEN01]
; p7 = starting point in the table [%]
; p8 = amplitude envelope [GEN]
; p9 = beginning of loop [%] (0.0=beg of file)
; p10 = end of loop [%] (1.0=end of file)
; p11 = crossfade length [%]
; p12 = loop mode: 0=fwd, 1=bkwd, 2=fwd+bkwd
;-----------------------------------------------------------------------------
; COMPULSORY GEN FUNCTIONS :
; f19 bell-shaped curve
;_____________________________________________________________________________




see Csound Tables Conventions


Auto doc generation by OpenMusic 6.6 © 2010 IRCAM