Csound Csound-dev Csound-tekno Search About

[Csnd] Pitch follow

Date2010-07-06 16:56
FromCharles Gran
Subject[Csnd] Pitch follow
Attachmentssynth-test.csd  
I tried to get this to work last summer when I was working on a piece
for csound and clarinet (http://www.campdeadly.com/clg/sensing.html).
I'm hoping to control a synth with a mic.

The below works okay in terms of sensing the pitch from my singing
into a mic.  Two problems:

1.  There always is a hard cutoff.  Is there a way to mitigate this
with a line or something?

2. I get occasional loud pops or cracks.  I can't tell if it is the
instrument or my system.

Can anyone help with this?
Charles




-odac4 -iadc4 -b64 -B1024



sr = 44100
ksmps = 1
nchnls = 1
0dbfs = 1

instr 1

 ain inch 1


  kscale = 1

  ikeepform = 0
  igain     = 1
  ifftsize  =  1024
  ioverlap  =  ifftsize / 4
  iwinsize  =  ifftsize
  iwinshape =  1 ;von-Hann window
  fftin     pvsanal ain*1.5, ifftsize, ioverlap, iwinsize, iwinshape
  kfr, kamp pvspitch fftin, 0.01

  kfr portk kfr, .000005
  kamp portk kamp, .00005

  asynth oscil kamp, kfr*kscale, 1
  asynth tone asynth, 1000

  a1 = asynth*1.15 ; louder please


 out a1

endin



f1 0 4096 10 1 .5 .333333 .25
i1 0 36000
e



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-07-06 16:59
FromPeiman Khosravi
Subject[Csnd] Re: Pitch follow

On 6 Jul 2010, at 16:56, Charles Gran wrote:

1.  There always is a hard cutoff.  Is there a way to mitigate this
with a line or something?


If I understand you correctly you can use portk for this. 

P

Date2010-07-06 18:28
FromCharles Gran
Subject[Csnd] Re: Re: Pitch follow
I'm already using portk to smooth out the values passed from pvspitch.
 I wonder if it has something to do with the threshold at which sound
is sensed by pvsanal.

On Tue, Jul 6, 2010 at 10:59 AM, Peiman Khosravi
 wrote:
>
> On 6 Jul 2010, at 16:56, Charles Gran wrote:
>
> 1.  There always is a hard cutoff.  Is there a way to mitigate this
> with a line or something?
>
> If I understand you correctly you can use portk for this.
> P


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"