rorywalsh / cabbage

Framework for developing audio plugins with the Csound programming language.
http://cabbageaudio.com
GNU General Public License v3.0
503 stars 35 forks source link

No commas allowed in strings? #151

Closed eleses closed 2 weeks ago

eleses commented 2 weeks ago

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.

rorywalsh commented 2 weeks ago

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 :)

eleses commented 2 weeks ago

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.