On Tue, May 12, 2020 at 02:37:01PM -0500, David Bowen wrote: > Pete, > > cpspch treats pch values like 8.15 as if it were 9.03. I'm assuming > cps2pch is trying to duplicate that behavior. The simple multiply to get > the index would work if we didn't allow this special case, but I believe > the while loop is there to handle it, but the logic isn't quite right. > Whoops! Yes, I was forgetting the definitions and confusing 'pch' with 'oct'. I see now why fract has to always be multiplied by 100. Your fix looks correct then. -- Pete -- 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