Csound Csound-dev Csound-tekno Search About

[Cs-dev] control/sample rate override bug

Date2007-03-19 17:01
FromVictor Lazzarini
Subject[Cs-dev] control/sample rate override bug
There is a bug in the control and sample-rate overrides
in the command-line.

Say we want to override sr/kr so that we always get
a ksmps=64. Then we should set kr = 689.0625 when
sr=44100:

csound -k 689.0625 -r 44100  ...

which yields:

sample rate overrides: esr = 44100.0, ekr =   689.0, ksmps =
64
0dBFS level = 32768.0
sr = 44100, kr = 689, ksmps = 64.00581

The command-line parsing is taking integers, when it should
look for floats. Should be simple to fix. Anyone?

Victor

-------------------------------------------------------------------------
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

Date2007-03-19 18:25
Fromroot
SubjectRe: [Cs-dev] control/sample rate override bug
Not as easy as it sounds.  The fields on the O structure are longs not 
floats so this is a fairly large change.  Doable though.
    Maybe on the plane Wednesday?
==John



-------------------------------------------------------------------------
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