[chuck-users] A problem with the code

pibsid at suomi24.fi pibsid at suomi24.fi
Sat Apr 19 04:59:42 EDT 2008


A quick glance over your code suggest that the seq faults are caused by float functions that do not return anything.

Try:
fun float foo(){
 return 0.0; //remember to return a float
}

The null pointer exceptions are propably caused by using SinOsc @ s[MAX_COMP];
This creates an array of null pointer SinOscs.

Try without the @:
SinOsc s[MAX_COMP];


-Pyry Pakkanen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080419/fba303e1/attachment.htm 


More information about the chuck-users mailing list