jamshark70 / ddwChucklib-livecode

A live-coding interface for chucklib objects
25 stars 0 forks source link

Wrong character in wildcard pool throws confusing parsing error #5

Open jamshark70 opened 6 years ago

jamshark70 commented 6 years ago
(
BP(\x).free;
PR(\abstractLiveCode).chuck(BP(\x), nil, (
    defaultParm: \degree,
    parmMap: (degree: (isPitch: true)),
));
)

/x = "\ins("", "*", 16, 0.25)";  // OK, but...

/x = "\ins("", ".", 16, 0.25)";

ERROR: Message 'item' not understood.
RECEIVER:
   Character 46 '.'

".", for a pitched parameter, is read as an articulation pool string, not an item string -- which is incompatible with item strings.

The fix, I think, will be for generators to publish expectations about inputs. Bigger fix than I can do right now.