[chuck-users] assigning a Blit array (George Locke)

George Locke george.locke.maxmsp at gmail.com
Mon Feb 3 12:18:30 EST 2014


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 at 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 at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20140203/9254d0d1/attachment.html>


More information about the chuck-users mailing list