SYNTH ZONE
Visit The Bar For Casual Discussion
Topic Options
#11064 - 11/29/98 10:29 PM Delphi and MIDI sequencer programming
polyecho Offline
Junior Member

Registered: 10/16/98
Posts: 21
Loc: Erie, PA, USA
Hi All,

I am an amatuer Delphi programmer. I am now trying to
program a MIDI sequencer software but all the information
I found on the net were only about MIDI file format. What
I need to know is how to send MIDI stream to, say, a synth
without using Tmmplayer component?
What are the MIDI messages I need to send? How to do that?
When to do that? (e.g. every 50 milliseconds, etc.)

Any hint will be much appreciated,

Norsez

Top
#11065 - 12/05/98 10:36 AM Re: Delphi and MIDI sequencer programming
Dave Offline
Junior Member

Registered: 09/22/98
Posts: 11
Loc: sweden
I donīt know shit about programming, but I would be delighted to one of you beta testers.
Mail me, Iīve got some interesting ideas.

So long

Dave

Top
#11066 - 12/06/98 08:16 PM Re: Delphi and MIDI sequencer programming
Mister Music Offline
Junior Member

Registered: 09/17/98
Posts: 13
I too am interested in such a venture, though I am primarily familiar with C/C++ programming (which, honestly, I reccommend for any serious development); I know little of Delphi -- (isn't it Pascal with a windows API?)
Anyhoo, I believe the playback algorithm is something to the effect:

while (have more events)
while (current event's time <= current time and event has't already been played)
Send Midi Message ( Note on, what note, velocity)
Increment current event index
end (while current event's...)
end (while have more events)

Of course, you'd have to check also for notes which need to be shut off, which'd take some sort of polyphony stack to remember what notes are on and when they should go off...

I assume you have some sort of documentation/helpfile about the Delphi windows api; look & see if you can find about "midioutmsg" or "midioutlong[msg]" and low level audio programming.

Top

Moderator:  Admin 



Help keep Synth Zone Online