Differences between revisions 3 and 4
Revision 3 as of 2006-11-25 16:52:03
Size: 1115
Editor: 201-43-237-52
Comment:
Revision 4 as of 2006-11-25 16:54:10
Size: 1139
Editor: 201-43-237-52
Comment:
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:

thread.ProcOff()

PySndObj (last edited 2008-11-15 14:00:59 by localhost)

Unable to edit the page? See the FrontPage for instructions.