src/Examples/FLOSS Manual Examples/12 Csound and other Languages/12B01_pyinit.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -ndm0 |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | |
| 7 | ;start python interpreter |
| 8 | pyinit |
| 9 | |
| 10 | ;run python code at init-time |
| 11 | pyruni "print '*********************'" |
| 12 | pyruni "print '*Hello Csound world!*'" |
| 13 | pyruni "print '*********************'" |
| 14 | |
| 15 | |
| 16 | </CsInstruments> |
| 17 | <CsScore> |
| 18 | e 0 |
| 19 | </CsScore> |
| 20 | </CsoundSynthesizer> |
| 21 | ;Example by Andrés Cabrera and Joachim Heintz |