From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c98f618755b0ddcc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!69.16.177.242.MISMATCH!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!npeersf02.ams.highwinds-media.com!newsfe14.ams2.POSTED!7564ea0f!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: Thinking of using Ada for a job at home. Couple of questions first. Message-ID: References: <60hto51vmooku9r7j6dmviqbnglhp0pra7@4ax.com> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.176.146.77 X-Complaints-To: abuse@demon.net X-Trace: newsfe14.ams2 1267650023 80.176.146.77 (Wed, 03 Mar 2010 21:00:23 UTC) NNTP-Posting-Date: Wed, 03 Mar 2010 21:00:23 UTC Date: Wed, 03 Mar 2010 21:00:21 +0000 Xref: g2news1.google.com comp.lang.ada:9386 Date: 2010-03-03T21:00:21+00:00 List-Id: Simon Wright wrote: >John McCabe writes: > >> BTW - in case anyone's interested, the MIDI format for the synth I'm >> interested in is defined at: >> >> http://www.kawaius-tsd.com/OM/K_SYNTH/K1WAVE~1.PDF > >You're going to have fun using unchecked conversion (whether by >Unchecked_Conversion or overlay), considering that the data dumps are >indefinite length (EOX-terminated). Won't you just have to read 4 octets >at a time until EOX? (rather like an HTTP request). Nah - they're fixed length in this case. >I think I agree with Dmitry, "reading the octet stream or else what is >natural for the device or the protocol at hand, and then constructing >the necessary Ada objects on the fly". Thanks for that. I'll bear it in mind but, as I sort of mentioned, for this synth and for the purposes I want it it looks like the data is a fixed length, and they're all terminated with EOX anyway. That is unless (as I hope is NOT the case) any other MIDI data is interspersed with the SysEx messages. I would hope not but you never know. Guess it depends on a number of things.