no dice.  

1 => int choosePulse;

BlitSquare pls[10];
BlitSaw saw[10];
BLT osc[10];
if (choosePulse) {
pls @=> osc;
} else {
saw @=> osc;
}

produces a compile error at the "pls @=> osc" line:

[untitled]:line(7): cannot assign '@=>' on types 'BlitSquare[]' @=> 'BLT[]'...

[untitled]:line(7): ...(reason: --- incompatible types for assignment)


Perry's workaround is good enough, though.


 - George



On Sun, Feb 2, 2014 at 10:37 PM, Zacko Belsch <zackobelsch@gmail.com> wrote:
I'm not sure whether the following is relevant or not.

Looking at the chuck source code (in ugen_stk.h), it appears the common superclass of BlitSaw and BlitSquare is BLT, not Blit.  Would what you tried work if you used BLT for your common array instead of Blit?

Bob H



_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users