| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac --limiter=.95 ;;;RT audio out |
| 5 |
;-iadc ;;;uncomment -iadc for RT audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o ATSbufread.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
; by Menno Knevel - 2023 |
| 17 |
|
| 18 |
;ATSA wants a mono file! |
| 19 |
;it takes a while to analyze these files... |
| 20 |
ires1 system_i 1,{{ atsa finneganswake1.flac finneganswake.ats }} |
| 21 |
prints "\n***1st analyzed file is ready***\n\n" |
| 22 |
ires2 system_i 1,{{ atsa drumsMlp.wav drumsMlp.ats }} |
| 23 |
prints "\n***2nd analyzed file is ready***\n\n" |
| 24 |
|
| 25 |
instr 1 |
| 26 |
ires1 ATSinfo "finneganswake.ats", 3 ; get number of partials |
| 27 |
ires2 ATSinfo "drumsMlp.ats", 3 ; get number of partials |
| 28 |
prints "\n***number of partials of finneganswake.ats = %d***\n\n", ires1 |
| 29 |
prints "\n***number of partials of drumsMlp.ats = %d***\n\n", ires2 |
| 30 |
|
| 31 |
ktime1 line 0, p3, 12.67 |
| 32 |
ktime2 line 0, p3, 2 |
| 33 |
kline line 0, p3, 1 ; cross from voice to the beats |
| 34 |
ATSbufread ktime1, 1, "finneganswake.ats", ires1 |
| 35 |
aout ATScross ktime2, 1, "drumsMlp.ats", 1, kline, 1, ires2 |
| 36 |
outs aout*2.5, aout*2.5 |
| 37 |
|
| 38 |
endin |
| 39 |
|
| 40 |
</CsInstruments> |
| 41 |
<CsScore> |
| 42 |
; sinoid wave. |
| 43 |
f 1 0 16384 10 1 .3 .1 .5 |
| 44 |
|
| 45 |
i 1 0 12.7 |
| 46 |
e |
| 47 |
</CsScore> |
| 48 |
</CsoundSynthesizer> |