1115
Comment:
|
1139
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
# | |
Line 5: | Line 6: |
# | |
Line 6: | Line 8: |
Available examples not in manual (please add): | = Title 1 = Available examples not in manual (please add): |
Line 10: | Line 12: |
#and alternating L-R output | [[BR]]#and alternating L-R output |
homepage: http://sndobj.sourceforge.net/#python
#
#
= Title 1 = Available examples not in manual (please add):
#simple synth with band limited noise, oscilators, BR#and alternating L-R output
import sndobj BRimport time
tab = sndobj.HarmTable() BRosc = sndobj.Oscili(tab, 440, 10000) BRnoise = sndobj.Randh(100000, 10000)
x=1 BRy=2
outp = sndobj.SndRTIO(2) BRoutp.SetOutput(x, osc) BRoutp.SetOutput(y, noise)
mod = sndobj.Oscili(tab, 2, 560) BRosc.SetFreq(440,mod)
mod2=sndobj.Oscili(tab, 4, 50) BRmod.SetFreq(2, mod2)
q=2 BRmod3 = sndobj.Oscili(tab, q, 1000) BRnoise.SetFreq(1000, mod3)
thread = sndobj.SndThread() BRthread.AddObj(mod) BRthread.AddObj(mod2) BRthread.AddObj(mod3) BRthread.AddObj(osc) BRthread.AddObj(noise) BRthread.AddObj(outp, sndobj.SNDIO_OUT)
thread.ProcOn()
n=0 while n < 8:
- if x==1:
- x=2
BRy=1
- x=1
BRy=2
outp.SetOutput(x, osc) BRoutp.SetOutput(y, noise) time.sleep(1) BRn +=1
- x=2
thread.ProcOff()