| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out Audio in No messages |
| 5 |
-odac -iadc -d ;;;RT audio I/O |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o pareq.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
kr = 4410 |
| 13 |
ksmps = 10 |
| 14 |
nchnls = 2 |
| 15 |
|
| 16 |
instr 15 |
| 17 |
ifc = p4 ; Center / Shelf |
| 18 |
kq = p5 ; Quality factor sqrt(.5) is no resonance |
| 19 |
kv = ampdb(p6) ; Volume Boost/Cut |
| 20 |
imode = p7 ; Mode 0=Peaking EQ, 1=Low Shelf, 2=High Shelf |
| 21 |
kfc linseg ifc*2, p3, ifc/2 |
| 22 |
asig rand 5000 ; Random number source for testing |
| 23 |
aout pareq asig, kfc, kv, kq, imode ; Parmetric equalization |
| 24 |
outs aout, aout ; Output the results |
| 25 |
endin |
| 26 |
|
| 27 |
|
| 28 |
</CsInstruments> |
| 29 |
<CsScore> |
| 30 |
|
| 31 |
; SCORE: |
| 32 |
; Sta Dur Fcenter Q Boost/Cut(dB) Mode |
| 33 |
i15 0 1 10000 .2 12 1 |
| 34 |
i15 + . 5000 .2 12 1 |
| 35 |
i15 . . 1000 .707 -12 2 |
| 36 |
i15 . . 5000 .1 -12 0 |
| 37 |
e |
| 38 |
|
| 39 |
|
| 40 |
</CsScore> |
| 41 |
</CsoundSynthesizer> |