|
Hello all.
i was looking for an example for the denorm opcode in order to place that
example in the manual. I found in the Csound forum a clean and nice little
example made by Istvan Varga that shows where to put the denorm opcode in
the instrument.
But i have 2 questions before i put this in the manual:
1. about "e" in the score. the manual says:"the e statement terminates all
signal generation (including indefinite performance)". And i99 0 -1 is such
an indefinite performance. Does e 8 mean ;"Always on" instrument 99 will end
after 8 seconds? Because when i use "e 2" everything stops right after the
second note has played.I found that "e 8 " does the trick but i do not yet
fully understand it. Can someone explain please?
2. i think that:
clear garvb
outs aL, aR
is as good as:
outs aL, aR
clear garvb
Is this correct? Same goes for
vincr garvb, a1
outs a1, a1
Here is the example,
bye,
menno
; Select audio/midi flags here according to platform
-odac ;;;RT audio out
;-iadc ;;;uncomment -iadc if RT audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o denorm.wav -W ;;; for file output any platform
; example from Istvan Varga 2006
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
garvb init 0
instr 1
a1 oscils 0.6, 440, 0
a2 linsegr 0, 0.005, 1, 3600, 1, 0.08, 0
a1 = a1 * a2
vincr garvb, a1
outs a1, a1
endin
instr 99 ;"Always on"
denorm garvb
aL, aR reverbsc garvb * 0.5, garvb * 0.5, 0.92, 10000
clear garvb
outs aL, aR
endin
i 99 0 -1 ;"Always on" instrument 99 remains active for ever
i 1 0 0.5
i 1 4 0.5
e 8 ;"Always on" instrument 99 will end after 8 seconds
--
View this message in context: http://csound.1045644.n5.nabble.com/denorm-issues-tp3318615p3318615.html
Sent from the Csound - Dev mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |