OK, I solved it. This fails:
"\\hello" => xmit.addString;
but this works:
"\\hello" => string foo;
foo => xmit.addString;
I guess the addString method doesn't have fully recognize escape
characters?
Joel
On 03/08/2013 03:44 PM, Joel Matthys wrote:
Hi all. I'm working on a project that requires
me to send a backslash character via OSC.
This construct is typical of C family languages:
"\\hello" -------> prints: \hello
but ChucK doesn't seem to let me escape a backslash. Instead I
get [unrecognized escape sequence: '\h'].
Same when I try to use octal: "\134hello"
Setting aside the crazy fact that I have to send a backslash
over OSC (it's for Guido music notation in InScore), does anyone
know how to get a backslash in a ChucK string?
Thanks,
Joel
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users