| Very late reply, but just wanted to confirm this is a good solution.
Cheers,
Andrés
On Sat, Apr 13, 2013 at 1:41 PM, Steven Yi wrote:
> Hi All,
>
> I was testing a CSD here and it seems that chnexport always fails if
> hints are not given. The relevant code looks to be:
>
> if (UNLIKELY(hints.min >= hints.max || hints.dflt < hints.min ||
> hints.dflt > hints.max ||
> (hints.behav == CSOUND_CONTROL_CHANNEL_EXP &&
> ((hints.min * hints.max) <= FL(0.0))))) {
> return CSOUND_ERROR;
> }
>
> With the default hints, hints.min = 0 and hints.max = 0, therefore the
> first predicate will always fail. Changing it to hints.min >
> hints.max seems to fix it, and seems logical enough to me but I wanted
> to verify.
>
> Thanks!
> steven
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listi |