1242
Comment:
|
1299
|
Deletions are marked like this. | Additions are marked like this. |
Line 12: | Line 12: |
=== 1- ===; | 1- |
Line 67: | Line 67: |
________________________ 2- (Write/paste your example here) |
homepage: http://sndobj.sourceforge.net/#python
#
#
Available examples not in manual (please add):
_
1-
#simple synth with band limited noise, oscilators, BR#and alternating L-R output BR#any issue, contact renato.fabbri@gmail.com
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) BRtime.sleep(1) BRn +=1
- x=2
thread.ProcOff()
2- (Write/paste your example here)