Csound Csound-dev Csound-tekno Search About

[Cs-dev] pitchamdf still

Date2011-10-30 10:11
Frommenno
Subject[Cs-dev] pitchamdf still
Hi

i was looking in the archive from the mailing list to get an idea for an
example for the manual with the upsamp opcode.
I saw a logical one, starring the pitchamdf opcode. But at the time there
was a problem with pitchamdf as you can see here:
http://csound.1045644.n5.nabble.com/pitchamdf-broken-td1115103.html

There is still that problem with it i think,  but now i do not get inf
values in that range, but zeroes:

i   1 time     0.00067:   250.00000
 i   1 time     0.00133:   250.00000
 i   1 time     0.00200:   250.00000
 i   1 time     0.00267:   250.00000
 i   1 time     0.00333:   250.00000
 i   1 time     0.00400:   250.00000
 i   1 time     0.00533:   250.00000
 i   1 time     0.00600:   250.00000
 i   1 time     0.00667:   250.00000
 i   1 time     0.00733:   250.00000
 i   1 time     0.00800:   250.00000
 i   1 time     0.00867:   250.00000
 i   1 time     0.01000:   250.00000
 i   1 time     0.01067:   250.00000
 i   1 time     0.01133:   250.00000
 i   1 time     0.01200:   250.00000
 i   1 time     0.01267:   250.00000
 i   1 time     0.01333:     0.00000
 i   1 time     0.01400:     0.00000
 i   1 time     0.01467:     0.00000
 i   1 time     0.01533:     0.00000
 i   1 time     0.01600:     0.00000
 i   1 time     0.01667:     0.00000
 i   1 time     0.01733:     0.00000
 i   1 time     0.01800:     0.00000
 i   1 time     0.01933:     0.00000
 i   1 time     0.02000:     0.00000
 i   1 time     0.02067:     0.00000
 i   1 time     0.02133:     0.00000
 i   1 time     0.02200:     0.00000
 i   1 time     0.02267:     0.00000
 i   1 time     0.02333:     0.00000
 i   1 time     0.02400:     0.00000
 i   1 time     0.02467:     0.00000
 i   1 time     0.02533:     0.00000
 i   1 time     0.02600:     0.00000
 i   1 time     0.02667:   500.00000
 i   1 time     0.02733:   500.00000
 i   1 time     0.02800:   500.00000
 i   1 time     0.02867:   500.00000
 i   1 time     0.02933:   500.00000
 i   1 time     0.03000:   500.00000
 i   1 time     0.03067:   500.00000
 i   1 time     0.03133:   500.00000
 i   1 time     0.03200:   500.00000
 i   1 time     0.03267:   500.00000
 i   1 time     0.03333:   500.00000
 i   1 time     0.03467:   500.00000
 i   1 time     0.03533:   500.00000
 i   1 time     0.03600:   500.00000
 i   1 time     0.03667:   500.00000
 i   1 time     0.03800:   500.00000
 i   1 time     0.03867:   500.00000
 i   1 time     0.03933:   500.00000
 i   1 time     0.04000:   500.00000
 i   1 time     0.04067:   500.00000
.......................

same goes for another wave file like "beats.wav", so it has nothing to do
with "
I am using Csound doubles Ocrober 21 Kubuntu.

This is the example:



; Select audio/midi flags here according to platform
-odac     ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if RT audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o upsamp.wav -W ;;; for file output any platform



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

; MESSAGE : inf values of kcps from time = 0.01333 to time = 0.02666 (ok
with csound-d 5.08)
giSine ftgen 0, 0, 65537, 10, 1			; sine wave

instr 1

asig  diskin2 "mary.wav", 1 ;or beats.wav
kcps, krms pitchamdf asig, 150, 500, 250
printk 0, kcps
arms upsamp krms
acps upsamp kcps
asig poscil arms*4, acps, giSine
outs asig, asig
	
endin




i 1 0 3
e



greetings
Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/pitchamdf-still-tp4949858p4949858.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World™ now supports Android™ Apps 
for the BlackBerry® PlayBook™. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net