Csound Csound-dev Csound-tekno Search About

Re: spectral delay (unexplained behavour)

Date2007-10-23 19:39
FromVictor Lazzarini
SubjectRe: spectral delay (unexplained behavour)
As far as I can see in the code, it's just a matter
of telling csound it's k-rate instead of i-time,
because the code is already k-rate. I'll
change this for the next release.

Victor

>
> How hard would it be to implement a pvsbufread with k-rate
> ilo and ihi  arguments. I'm guessing not so easy otherwise
> you probably would have  implemented it already?
>
> Rory.
>
> Victor Lazzarini wrote:
> > In fact, I have automated this now. A bit on the heavy
> > processing side though. But it does bin by bin, see:
> >
> > 
> > 
> > 
> > 
> >
> > sr= 44100
> > ksmps = 256
> > nchnls= 2
> >
> > gibuf init 0
> > gkt   init 0
> > gfmix pvsinit 1024
> >
> > instr 1
> >
> > asig  diskin2 "pianoc2.wav", 1,0,1
> > fsig1 pvsanal asig,1024,256,1024,1
> > gibuf,gkt  pvsbuffer fsig1,6
> >
> > endin
> >
> > instr 2
> >
> > fsig pvsbufread gkt-p4,gibuf,p5-p6,p6+p6
> > ; add the signal to the global bus
> > fmix pvsmix fsig, gfmix
> > ; assignment is not working
> > ; so we use pvsmix
> > gfmix pvsmix fmix, fmix
> > print p5
> > endin
> >
> > instr 3
> > fzero pvsinit 1024
> > asig pvsynth gfmix
> >      outs asig, asig
> > ; reset the global fsig
> > ; actually we need an opcode for that!
> > gfmix pvsvoc gfmix,fzero, 0, 0
> > endin
> >
> > instr 4
> > kcf init 0
> > kcnt init 0
> > kdel init 0
> > even:
> > kcf = kcf+sr/1024
> > kdel = kdel+5/512
> > event "i",2,0,60,kdel,kcf,sr/512
> > kcnt = kcnt + 1
> > if kcnt < 512 kgoto even
> > turnoff
> > endin
> >
> >
> > 
> > 
> >
> > f1 0 16384 9 1 1
> > i1 0 60
> > i4 0 1
> > i3 0 60
> >
> > 
> > 
> >
> >
> > At 15:15 23/10/2007, you wrote:
> >
> >> Yes but how do you delay each bin (as opposed to
> frequency region)?  >> say you
> >> have 512 bins then you would need 512 pvsbufread
> opcodes. But what if you >> want to change the fft size? I
> see that pvsburead would be ideal for >> spectral delay if
> there was a way to use it in a loop block. >>
> >> Best
> >> Peiman
> >>
> >>
> >> rory walsh wrote:
> >> >
> >> > By slowing down the rate of read-back is one not just
> simply  >> delaying the
> >> > contents of the bins?
> >> >
> >> >>
> >> >> Correct me if I am wrong. I cannot find a way to
> control the delay for >> >> individual bins with pvsbuf
> opcodes. Is this possible? >> >>
> >> >> Thanks
> >> >> Peiman
> >> >>
> >> >>
> >> >> Victor Lazzarini wrote:
> >> >
> >> > --
> >> > Send bugs reports to this list.
> >> > To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
>
http://www.nabble.com/spectral-delay-tf4633685.html#a13365405
> >> Sent from the Csound - General mailing list archive at
> Nabble.com. >>
> >> --
> >> Send bugs reports to this list.
> >> To unsubscribe, send email to
> > csound-unsubscribe@lists.bath.ac.uk
> > Victor Lazzarini
> > Music Technology Laboratory
> > Music Department
> > National University of Ireland, Maynooth
> >
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk