| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
; For Non-realtime ouput leave only the line below: |
| 6 |
; -o A4.wav -W ;;; for file output any platform |
| 7 |
|
| 8 |
; By Stefano Cucchi - 2020 |
| 9 |
|
| 10 |
</CsOptions> |
| 11 |
<CsInstruments> |
| 12 |
|
| 13 |
sr = 44100 |
| 14 |
ksmps = 32 |
| 15 |
nchnls = 2 |
| 16 |
0dbfs = 1 |
| 17 |
|
| 18 |
#define STANDARDPITCH #440# ; as set by ISO 1975:16 - STANDARD MUSICAL PITCH |
| 19 |
#define BAROQUEPITCH #415# ; common use (but not standard) in Baroque era (1600 - 1750) |
| 20 |
#define HIGHER #443# ; some orchestras, mainly in Europe use higher pitch (442-443 Hz) |
| 21 |
|
| 22 |
#define EXPRESSION #(440*1.3)+200# ; you can use an expression |
| 23 |
|
| 24 |
A4 = $STANDARDPITCH |
| 25 |
;A4 = $BAROQUEPITCH |
| 26 |
;A4 = $HIGHER |
| 27 |
|
| 28 |
;A4 = $EXPRESSION |
| 29 |
|
| 30 |
instr 1 |
| 31 |
|
| 32 |
ipch = p4 |
| 33 |
icps = cpspch(ipch) |
| 34 |
asig oscil 0.7, icps, 1 |
| 35 |
outs asig, asig |
| 36 |
|
| 37 |
endin |
| 38 |
|
| 39 |
</CsInstruments> |
| 40 |
<CsScore> |
| 41 |
|
| 42 |
f 1 0 4096 10 1 0.3 0.2. 0.1 |
| 43 |
|
| 44 |
; Theme from Bach BWV 578 - Little fugue in G minor. |
| 45 |
i 1 0 1 7.07 |
| 46 |
i 1 + 1 8.02 |
| 47 |
i 1 + 1.5 7.10 |
| 48 |
i 1 + .5 7.09 |
| 49 |
i 1 + .5 7.07 |
| 50 |
i 1 + .5 7.10 |
| 51 |
i 1 + .5 7.09 |
| 52 |
i 1 + .5 7.07 |
| 53 |
i 1 + .5 7.06 |
| 54 |
i 1 + .5 7.09 |
| 55 |
i 1 + 1 7.02 |
| 56 |
e |
| 57 |
|
| 58 |
</CsScore> |
| 59 |
</CsoundSynthesizer> |