src/Examples/FLOSS Manual Examples/09 Csound in other Applications/09B05_maxcs_events.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsInstruments> |
| 3 | sr = 44100 |
| 4 | ksmps = 32 |
| 5 | nchnls = 2 |
| 6 | 0dbfs = 1 |
| 7 | |
| 8 | instr 1 |
| 9 | iDur = p3 |
| 10 | iCps = cpsmidinn(p4) |
| 11 | iMeth = 1 |
| 12 | print iDur, iCps, iMeth |
| 13 | aPluck pluck .2, iCps, iCps, 0, iMeth |
| 14 | outch 1, aPluck, 2, aPluck |
| 15 | endin |
| 16 | </CsInstruments> |
| 17 | <CsScore> |
| 18 | </CsScore> |
| 19 | </CsoundSynthesizer> |
| 20 | ;example by Davis Pyon |