I have a large text file, that consists of 1′s and 0′s, with no spaces, line breaks or other characters in it. I cannot modify this file. I would like to read it into Max, and be able to read its contents one byte at time (i.e. either a 1 or 0). How to do this? The text object doesn’t seem to work properly with my file, as I believe the "line" length in my file exceeds 256 characters. I’ve also tried jit.textfile, but once I have the data in the jitter matrix, I’m too much of a jitter noobie to know how to get the integer values out, one byte a time!
Filein? Although i’m kinda assuming you’ve already looked at it?
----------begin_max5_patcher---------- 384.3ocwTF0aBBCDG+YLwuCM8YmgVPcYusOGSyRAp5s.sFZIyMy9tuxAnFMR .Cy8hW7+cs2+9iK2gwi7nQ58RCk7B4Mhm2AmhGpUp30H3QyD6iSEFrPZlzXD ajzI0Isx8VLwRJaI8nrtvlJs1u1IqtdJkrpI2ZsxpDYXF5q4fH83wfDTTG8w SLF87CXfuwCv3S8azUEYfx0FzY7F0cBa7VPs48bYrsp6g7EtSQB3gkgY9k+x ddp+IO4tpJKi2ECU+Y7nxnKLoy3QI+zY9qoCX0haCGPY6MeVzO7DzFdXHQ3y P7DNG+i+eBdJxhj4sChIDZjPso2.Yd+.BqMfDtnhA9mlWZCH7AedYMjJAU2. 08BL1vOAEv51DTvcCrat+IWJRFv0O7Ab6SMb7Q3DLquaeppilBpqVVicqLwE HynKxiad60aKHm0vDowBJgEzpyJpbkKgcppsPRhDK33iNCR1ocCe0Fgr51eH 6r2XcwaW7.dPVadmv1+h03OFqUJ3B+BStv75 -----------end_max5_patcher-----------
Ugh – feel silly now! I *did* try filein, but I was thrown by the data output format — I forgot the itoa missing piece.
Right under your nose :)
Must admit i was actually suprised it worked. I was expecting some type of header in the .txt-format somehow.
C74 RSS Feed | © Copyright Cycling '74