Author |
Topic: record from MIDI file (Read 1396 times) |
|
gargamehl
New Member

 I love YaBB 1 Gold!
Posts: 3
|
 |
record from MIDI file
« on: Feb 6th, 2002, 2:41pm » |
Quote Modify
|
Hello, I am looking for a component that will allow users to record from a midi file. What that means is that the user can choose and start and stop point in the MIDI file and have that output to new file. Thus one can extract the chorus of a song or the intro depending on which part they want to keep. Will Midi-ox help me to accomplish this functionality? Thanks in advanced for any suggestions.
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: record from MIDI file
« Reply #1 on: Feb 8th, 2002, 11:36am » |
Quote Modify
|
Doing this would be very easy in a MIDI sequencer. There are all sorts of inexpensive options for MIDI sequencers (PG Music, Winjammer, Cakewalk).
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
gargamehl
New Member

 I love YaBB 1 Gold!
Posts: 3
|
 |
Re: record from MIDI file
« Reply #2 on: Feb 8th, 2002, 1:17pm » |
Quote Modify
|
Actually what I'm looking for is the API for clipping a file given a start time and a stop time not a specific application.
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: record from MIDI file
« Reply #3 on: Feb 8th, 2002, 10:01pm » |
Quote Modify
|
I wasn't aware that there is any sort of API to do that -- is this using Direct Music or something?
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
gargamehl
New Member

 I love YaBB 1 Gold!
Posts: 3
|
 |
clipping midi files
« Reply #4 on: Feb 11th, 2002, 1:12pm » |
Quote Modify
|
you are correct, there is no API to do this specifically. I'm looking for how I can do it without using Direct Music. there are some functions in the MSDN library on how to manipulate MIDI files, but I'm unfamiliar with MIDI files in general and so I'm at a loss. I'm looking for information on how to clip the MIDI file. Most MIDI documentation discusses output to MIDI devices or recording from MIDI devices. I'm looking for ways to manipulate the file directly. I can't even find out how to associate a timestamp with the file itself.
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: record from MIDI file
« Reply #5 on: Feb 11th, 2002, 8:37pm » |
Quote Modify
|
Part of the problem is the nature and structure of SMF's. Each track is stored serially in the file. Within each track, each event is stored as an offset (in time) from the previous event. This makes it very difficult to 'clip' a MIDI file in place: the file would have to be completely opened in memory and have been changed to a different internal structure before applying such an edit. That is why I suggested a sequencer.
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
|