sndwarp with kresample = 1 doubles pitch
Date | 2016-11-18 19:17 |
From | Richard |
Subject | sndwarp with kresample = 1 doubles pitch |
I have this guitar sample (A3) that I play with sndwarp. I noticed that the pitch gets doubled. This should not be... kresample init 1 ;do not change pitch ibeg = 0 ;start at beginning iwsize = 4410 ;window size in samples with irandw = 882 ;bandwidth of a random number generator itimemode = 1 ;ktimewarp is "time" pointer ioverlap init 5 ; Play the audio sample stored in Table #1. a1 sndwarp .5, 0, kresample, 1, ibeg, iwsize, irandw, ioverlap, 2, itimemode When I play the same sample with oscil, it sounds normal: kcps = 1 ifn = 1 ibas = 1 ; Play the audio sample stored in Table #1. a1 loscil .5, kcps, ifn, ibas any ideas? Richard Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-11-18 19:36 |
From | Linda Antas |
Subject | Re: sndwarp with kresample = 1 doubles pitch |
Hi Richard, "When itimemode is any non-zero value then xtimewarp is used as a time pointer..." I changed itimemode to 0, tried various xtimewarps for the stretch-factor, and the resample value (1 or otherwise) is correct. ~Linda On Fri, Nov 18, 2016 at 12:17 PM, Richard <zappfinger@gmail.com> wrote: I have this guitar sample (A3) that I play with sndwarp. I noticed that the pitch gets doubled. This should not be... |
Date | 2016-11-19 13:22 |
From | Richard |
Subject | Re: sndwarp with kresample = 1 doubles pitch |
Attachments | samplePlay.csd temp.wav |
Here is an example csd and the wav file that shows the problem. Richard On 18/11/16 20:36, Linda Antas wrote:
|
Date | 2016-11-19 14:09 |
From | Iain McCurdy |
Subject | Re: sndwarp with kresample = 1 doubles pitch |
The sample rate of temp.wav is 22050. If you don't specify a sample rate in the orchestra header it defaults to 44100 - I think this is from where the transposition originates. If you put sr = 22050 in the header both notes are at the same pitch. Iain From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Richard <zappfinger@GMAIL.COM>
Sent: 19 November 2016 13:22 To: CSOUND@LISTSERV.HEANET.IE Subject: Re: [Csnd] sndwarp with kresample = 1 doubles pitch Here is an example csd and the wav file that shows the problem. Richard On 18/11/16 20:36, Linda Antas wrote:
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-11-19 14:39 |
From | Richard |
Subject | Re: sndwarp with kresample = 1 doubles pitch |
Thanks Ian, makes sense!
Richard On 19/11/16 15:09, Iain McCurdy wrote:
|