<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-im">make an addition to soundfiler to read binary characters into an array.</span></blockquote><div><br></div><div> wouldn't "read -raw 0 1 1 n" work?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 21 janv. 2019 à 00:55, Christof Ressi <<a href="mailto:christof.ressi@gmx.at">christof.ressi@gmx.at</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Somewhere on my long do-list is an idea to make an addition to soundfiler<br>
> to read binary chanracters into an array.<br>
<br>
+1<br>
<br>
@Mario: in the meantime you can use [mrpeach/binfile] to read arbitrary binary data.<br>
<br>
> Gesendet: Montag, 21. Januar 2019 um 00:34 Uhr<br>
> Von: "Miller Puckette" <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>><br>
> An: "Mario Buoninfante" <<a href="mailto:mario.buoninfante@gmail.com" target="_blank">mario.buoninfante@gmail.com</a>><br>
> Cc: pd-list <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br>
> Betreff: Re: [PD] [text] issue reading SysEx files<br>
><br>
> The trouble is probably the presence of a '{' character in the file.<br>
> But there will be other problems - ASCII NULL characters will simply<br>
> terminate the string early, and semicolons, spaces, and commas will<br>
> confuse things.<br>
> <br>
> Somewhere on my long do-list is an idea to make an addition to soundfiler<br>
> to read binary chanracters into an array.<br>
> <br>
> cheers<br>
> Miller<br>
> <br>
> On Fri, Jan 18, 2019 at 04:39:04PM +0000, Mario Buoninfante wrote:<br>
> > Hi,<br>
> > <br>
> > I've been trying to read SysEx files using [text], and I noticed that the<br>
> > loaded file end up being corrupted in a way with bits and bops missing.<br>
> > Also trying to manually copy and paste part of the file (from Atom text<br>
> > editor) I'm not able to copy the entire file, there's always something<br>
> > missing (ie select all the file in Atom, copy and paste in [text]).<br>
> > When loading the file I've got no error, but then when I open the [text]<br>
> > window, this is returned on the console:<br>
> > <br>
> > (Tcl) UNHANDLED ERROR: extra characters after close-brace<br>
> >     while executing<br>
> > "pdtk_textwindow_append .x100617310 {d 0 iM @?, f h I R kQ, [ ???? ), Y Q Y1<br>
> > -" ( , XFN `  8 ) 6{` )  ) ;<br>
> > }<br>
> > pdtk_textwindow_append .x1006173..."<br>
> >     ("uplevel" body line 39)<br>
> >     invoked from within<br>
> > "uplevel #0 $docmds<br>
> > <br>
> > I know, it's a kind of a weird thing trying to read SysEx files in this way<br>
> > and probably it's just me trying to do something with the wrong tool.<br>
> > But weirdly enough the sequences of characters I cannot copy and paste from<br>
> > Atom, can then be directly typed in the [text] window.<br>
> > I suspect this has to do with the character encoding.<br>
> > Does anyone know why [text] behave this way?<br>
> > <br>
> > Cheers,<br>
> > Mario<br>
> <br>
> > _______________________________________________<br>
> > <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> > UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
> <br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>