| Hi Colin,
The oscili that outputs ksig is reading from f1, not f2. If f1 goes
below zero, then that might explain why you're getting the nan
error.
Jonathan.
Colin Kahn writes:
> I've tried to figure out what i'm doing wrong with this and i'm pretty
> sure it's a bug with tempest. When i run tempest and use printks to see
> its value it returns "nan". I'm using Csound 5.04. I also tried it
> using Csound 5.01 and it only returned zero. Here's the orc file i'm
> using:
>
> instr 2
> kx, ky xyin .1, 30, 1, 30, 1
> ksig oscili 32000, kx, 1
> a1 oscili ksig, 440, 1
> kcps, krms pitchamdf a1, 150, 500, 200
> ktempo tempest ksig, .02, .1, 3, 2, 800, .005, 8, 60, 2, .04, .995
> tempo ktempo, 60
> kval tempoval
>
> out a1
> printks "rms %f\ntempest %f\ntempo %f\n", 1, krms, ktempo, kval
> endin
>
>
> Here's the f statement:
> f2 0 128 16 1 128 1
>
> I'm really stumped and any insight would be greatly appreciated.
>
> Thanks,
>
> Colin
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |