Re: [Sndobj-devel] DelayLine question
Status: Abandoned
Brought to you by:
veplaini
From: Victor L. <Vic...@nu...> - 2007-07-12 11:05:06
|
Use a Mixer object and mix the two signals: Mixer mix mix.AddObj(delay) mix.AddObj(osc) outp.SetOutput(mix) (Or use a SndRTThread object that has a builtin mixer for each output channel.) Victor At 19:28 11/07/2007, you wrote: >Hi all! > >I'm new to SndObj. Hope someone can help me with this. I was trying a >DelayLine object but with no luck. Here is what I've got: >import sndobj >import time > >tab = sndobj.HarmTable() >env = sndobj.Interp(5000, 0, 0.1, 2) >osc = sndobj.Oscili(tab, 440, 0, None, env) >delay = sndobj.DelayLine(0.5, osc) >outp = sndobj.SndRTIO(1) >outp.SetOutput(1, osc) >outp.SetOutput(1, delay) >thread = sndobj.SndThread () >thread.AddObj(osc) >thread.AddObj(env) >thread.AddObj(delay) >thread.AddObj(outp, sndobj.SNDIO_OUT) >thread.ProcOn() >time.sleep(2) >thread.ProcOff() > >Now, I can hear only delayed signal. But how can hear the original also? >It should be possible(?). >Thanks. > >Bosko >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >Sndobj-devel mailing list >Snd...@li... >https://lists.sourceforge.net/lists/listinfo/sndobj-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |