Differences between revisions 7 and 8
Revision 7 as of 2006-11-30 18:03:11
Size: 1190
Editor: 201-93-213-26
Comment:
Revision 8 as of 2006-11-30 18:04:12
Size: 1242
Editor: 201-93-213-26
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:

_________________________________

=== 1- ===;

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:

thread.ProcOff()

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

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