Article View: borland.public.cppbuilder.nativeapi
Article #16307Re: Beep(freq,dur) MIDI-style
From: Chris Hill
Date: Wed, 21 May 2003 04:12
Date: Wed, 21 May 2003 04:12
23 lines
1828 bytes
1828 bytes
On Tue, 20 May 2003 08:43:28 -0700, "Nicholas Gessler" <gessler@ucla.edu> wrote: >Chris, > >Many thanks. No, I don't think of MIDI as a replacement for BEEP but I >thought if I kept it simple, it would get me started. I look forward to >working with the code you suggest... > >Cheers, >Nick The key to going beyond the tiny sample I posted is understanding the various MIDI messages you can send (such as change instrument [on channel c to instrument i] and note on [channel c, note n, velocity v]). Timing is also very important for this kind of low level MIDI output, _exactly_ when you send a message in relation to other messages you send is significant. I used the Sleep in my example to achieve the duration of the note, but for many purposes it may be better to use more complicated and accurate timing systems. Chris Hill Chris244@aol.com
Technical Details
Message-ID:
<3ecaf841.896750448@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ec803f7@newsgroups.borland.com> <3ec9b925.815056399@forums.borland.com> <3eca4cd1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,43257d87a9e437b6 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-20 21:36:51 PST From: Chris244@aol.com (Chris Hill) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Beep(freq,dur) MIDI-style Date: Wed, 21 May 2003 04:12:21 GMT Message-ID: <3ecaf841.896750448@forums.borland.com> References: <3ec803f7@newsgroups.borland.com> <3ec9b925.815056399@forums.borland.com> <3eca4cd1$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 12.221.66.183 X-Trace: newsgroups.borland.com 1053490338 12.221.66.183 (20 May 2003 21:12:18 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail