ascii to binary in rnbo

marc 9's icon

trying to get ascii text into 7 bit binary within rnbo to have it run on raspi.
any suggestions how to approach this?

below the working max example

Max Patch
Copy patch and select New From Clipboard in Max.

Alex Norman's icon

RNBO doesn't have strings, characters or symbols so you're not going to be able to represent 'a' or 'b' or 'foo' directly. Maybe you can tell us a bit more about what you're trying to do and we might be able to suggest a workaround?

marc 9's icon

Oh, I see. Thanks for this hint. I was aware of the string issue, but didn't realize characters being an issue.

My goal was to receive alphanumeric characters from an external text player (Teensy-Arduino based) via OSC - character by character. As received in RNBO I'd like to calculate binary sequencies of 0 and 1 to process them bit by bit (modem like) in RNBO. The bit-value modulates a lfo triangle wave with pulses and is source for CV output. Same time characters are displayed on an lcd screen connected directly to the Teensy.

My speed is in the range of 8ms/bit I want to avoid bit-traffic over the network - character by character traffic would be ok (1"byte" every 64ms).

I´m quite open to workarounds...

Alex Norman's icon

If you're authoring the teensy code, can you simply convert your text to numbers there and then send the numeric value instead of a string or character value via OSC?