rorywalsh/cabbage

No commas allowed in strings?

Closed this issue · 2 comments

Testing beta ver 227 on Windows, I can't seem to have commas inside text strings, like on labels e.g.:

label bounds(42, 22, 181, 16) channel("label10002") fontColour(0, 0, 0, 255) text("On track end, play:")

That cuts out the last part after comma on display. Yeah, the label is long enough, it doesn't cut out because of that but seemingly because there are no commas allowed in labels' text? Also, ver 227 is pretty crash-prone on Windows in general, but if I put commas inside a label string even the older (and more stable) ver 155 crashes fairly quickly.

Comma's are not permitted in labels, it screws up the parser. I'm rewriting Cabbage at the moment. The new version will permit commas in labels :)

Ok, good to know. By the way, sometimes the commas do show up in the UI! And sometimes they don't... But the more worrisome part is that they seem to corrupt some internal state, leading to crashes. Some of crashes I had were probably due to this Csound bug though ("InitError in wrong mode 0"), which I'm not sure it's been actually fixed in released builds though.