Re: [Sndobj-devel] Connecting double Interp
Status: Abandoned
Brought to you by:
veplaini
From: Victor L. <Vic...@nu...> - 2007-09-26 08:47:17
|
what is happening is that your 2nd envelope is not having much effect. The comb filter will repeat the first short beep every 1/2 sec, decreasing its volume by half each repeat. The envelope is going from 0 to 1 in 3 sec, increasing as the beeps decrease. If you want amplification then it has to go above 1, but the sound will decay because the comb filter makes it decay. I am not sure what you want, but do you understand what is happening? Victor At 19:46 25/09/2007, Bosko&Toma Milakovic wrote: >Hi! > >I have this code: > >import sndobj >import time > >tab = sndobj.HarmTable() >osc = sndobj.Oscili(tab, 400, 1) >line1 = sndobj.Interp(5000, 0, 0.1) >ring1 = sndobj.Ring(osc, line1) >dly = sndobj.Comb (0.5, 0.5, ring1) >line2 = sndobj.Interp(0, 1, 3) >ring2 = sndobj.Ring(dly, line2) > >outp = sndobj.SndRTIO(1) >outp.SetOutput(1, ring2) > >t = sndobj.SndThread() >t.AddObj(osc) >t.AddObj(line1) >t.AddObj (ring1) >t.AddObj(dly) >t.AddObj(line2) >t.AddObj(ring2) >t.AddObj(outp, sndobj.SNDIO_OUT) >t.ProcOn() >time.sleep(5) >t.ProcOff() > >When I multiply osc and line1, I get short sound. That part is ok. Now, >the problem is in the second Interp() - line2. When it's multiplied with >dly(Comb) I don't get desired result, which is that Comb's output dynamics >goes from 0 to 1 in 3sec. The sound has just lower volume, but the >envelope stays the same. What am I doing wrong? >Thanks. > >Bosko >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >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 |