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,5d6e2ad0b6f4137a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.86.MISMATCH!news.astraweb.com!border5.a.newsrouter.astraweb.com!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: This MIDI stuff, would someone be interested in reviewing my code? Date: Mon, 15 Mar 2010 11:35:27 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <4b9b48cb$0$15819$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: RXEkuaSUwmKe0XIGFYSK7A.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 2.0/32.652 Xref: g2news1.google.com comp.lang.ada:9573 Date: 2010-03-15T11:35:27+00:00 List-Id: Christophe, >John McCabe a �crit : >> Hi >> >> It's still early days but, if I'm going to be using Ada to try to >> build this app I want, it would be nice to write it in a style that >> looks appropriate. I'm aware of the Q&S guide but I was hoping that >> someone could take a quick look at the code I've written (it's only 80 >> lines or so, and it's down below) and see if there's anything >> obviously stupid I'm doing. >Here is a working code: http://sourceforge.net/projects/canta/ written >in Ada. Thank you for pointing me to that code. I really appreciate it but unfortunately there only seems to be a small amount of it that fits in with the application I'm thinking of developing, and that's the opening of the MIDI output port and sending short messages. That will be useful, but my main challenges will be handling the MIDI input and the GUI. From the GUI point of view, I see that you're directly using the Windows functions, like CreateWindow and so on. I'm hoping to be able to use Qt to help this become cross-platform (I know my calls to midiInGetNumDevs etc are all explicit above, but I hope to abstract an interface to the midi functionality once I've proven that I can do the basic stuff on windows). The other thing is that all my MIDI dealings will be with System Exclusive messages whereas yours appears to only use short messages to the MIDI output device. I certainly appreciate you taking the time to reply though, so thank you very much. John