src/Examples/FLOSS Manual Examples/01 Basics/01D02_white_noises.csd
raw| 1 | <CsoundSynthesizer> |
| 2 | <CsOptions> |
| 3 | -odac |
| 4 | </CsOptions> |
| 5 | <CsInstruments> |
| 6 | sr = 44100 |
| 7 | ksmps = 32 |
| 8 | nchnls = 2 |
| 9 | 0dbfs = 1 |
| 10 | |
| 11 | instr white_noise |
| 12 | iBit = p4 ;0 = 16 bit, 1 = 31 bit |
| 13 | ;input of rand: amplitude, fixed seed (0.5), bit size |
| 14 | aNoise rand .1, 0.5, iBit |
| 15 | outs aNoise, aNoise |
| 16 | endin |
| 17 | |
| 18 | </CsInstruments> |
| 19 | <CsScore> |
| 20 | i "white_noise" 0 10 0 |
| 21 | i "white_noise" 11 10 1 |
| 22 | </CsScore> |
| 23 | </CsoundSynthesizer> |
| 24 | ;example by joachim heintz |