Re: pitch in K-S algorithm
Date | 1999-03-20 01:39 |
From | Hans Mikelson |
Subject | Re: pitch in K-S algorithm |
Hi, Rewriting the second example yields the following instrument which still has the tuning problem: instr 2 icps = cpspch(p4) iamp = p5 kamp linseg iamp, 1/icps, iamp, 0, 0, p3-1/icps, 0 asig init 0 anoise rand kamp adel delayr 1/icps delayw asig asig tone adel+anoise,sr/2 outs ganull, asig endin Making the following change solves the tuning problem. adel delayr 1/icps asig tone adel+anoise,sr/2 delayw asig Setting sr=kr also solves the problem. Hope this helps, Hans Mikelson |