examples/fmanal.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | </CsOptions> |
| 4 | <CsInstruments> |
| 5 | |
| 6 | sr = 44100 |
| 7 | ksmps = 64 |
| 8 | nchnls = 2 |
| 9 | 0dbfs = 1 |
| 10 | |
| 11 | instr 1 |
| 12 | |
| 13 | asig oscili p4, p5 |
| 14 | a1,a2 hilbert2 asig,1024,256 |
| 15 | am,afm fmanal a1,a2 |
| 16 | ktrig metro 2 |
| 17 | printf "AM=%.3f FM=%.1f\n",ktrig,k(am),k(afm) |
| 18 | outs a1, a2 |
| 19 | |
| 20 | endin |
| 21 | |
| 22 | |
| 23 | </CsInstruments> |
| 24 | <CsScore> |
| 25 | i1 0 10 0.5 440 |
| 26 | </CsScore> |
| 27 | </CsoundSynthesizer> |