Re: [Sndobj-devel] Connecting double Interp
Status: Abandoned
Brought to you by:
veplaini
From: Victor L. <Vic...@nu...> - 2007-09-27 08:25:19
|
I'd say you need to adjust the duration so that it peaks earlier. At 10:35 26/09/2007, Bosko&Toma Milakovic wrote: >Hi! > >Without second envelope, the amplitude looks something like: >| >| | >| | | >| | | | >| | | | | > >Comb filter repeats beep sound and amp is decreasing. >Now, with second envelope I need something like this: > | > | | | >| | | | | > >But with my code envelope is: >| | | >| | | | >| | | | | > >If I increase the parameter of second envelope from 1 to cca10 so it goes >from 0 to 10(not 0 to 1), the envelope is same like in 3rd example, only >the amplitude is higher. How can I make envelope to be like in example 2? >I know that this is some stupid problem but I can't figure it out... >Thanks. >B > >On 9/26/07, Victor Lazzarini < ><mailto:Vic...@nu...>Vic...@nu...> wrote: >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/>http://clk.atdmt > .com/MRT/go/vse0120000070mrt/direct/01/ > >_______________________________________________ > >Sndobj-devel mailing list > ><mailto:Snd...@li...>Snd...@li...urceforge > .net > > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >Victor Lazzarini >Music Technology Laboratory >Music Department >National University of Ireland, Maynooth > Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |