Tuesday, July 11, 2017

ex1D02. White Noise

# ex1D02.py
# White Noises

from moduleCsound import *

tags(1)

header(ksmps=32)

add("""
instr white_noise
iBit       =          p4 ;0 = 16 bit, 1 = 31 bit
 ;input of rand: amplitude, fixed seed (0.5), bit size
aNoise     rand       .1, 0.5, iBit
           outs       aNoise, aNoise
endin
""")

tags(2)

add("""
i "white_noise" 0 10 0
i "white_noise" 11 10 1
""")

tags(3)

writeRun(__file__)

No comments:

Post a Comment

ex3A05. Audio Vector