Differences between revisions 5 and 6
Revision 5 as of 2006-11-25 16:56:30
Size: 1133
Editor: 201-43-237-52
Comment:
Revision 6 as of 2006-11-25 16:57:49
Size: 1139
Editor: 201-43-237-52
Comment:
Deletions are marked like this. Additions are marked like this.
Line 58: Line 58:
    time.sleep(1)     [[BR]]time.sleep(1)

homepage: http://sndobj.sourceforge.net/#python

#

#

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.