Using [route] with numbers sent from [text] object
Hello all,
Just working on a project whereby I'm sending some numerical data from a text file, which I'm using as a score for larger project (I'm using a text file as the score is very long, and find it easier to compose and edit that way).
I'm able to read the text file fine, and output a single number from a single line ( the numbers being either a 1, 2, 3, or 4), but I need to route the numbers to trigger other objects.
Although I can stream the data into an integer number box, it seems that it can't be routed from there through the [route] object. I've tested a few things, and I assume this is because that max doesn't know what is being read from the text file is in fact an integer, but I could be wrong?
Either way, how can I convert this text number into what Max will recognize as an integer?
You are probably missing something very simple.
If You output only a single integer,
You can use route 1 , select 1 or match 1, or many other ways
to either pruduce a bang or to forward that specific number.
Text file outputs "set " prepended to any output,
so zl slice 1 would do.
Ah, perfect, many thanks!
I did manage to miss the 'set' part of that output, which explains the issues I was having. zl slice 1 is working great.
Thanks again! (And incidentally, this is for another max/arduino project which I managed to get working a lot faster this time due to your previous help! :) ).