[Csnd] Re: Re: --midioutfile properties - bug fix request
Date | 2007-12-16 03:44 |
From | "Michael Gogins" |
Subject | [Csnd] Re: Re: --midioutfile properties - bug fix request |
In my view, the header should be changed. MIDI files output by Csound should be playable in standard MIDI file players and importable with correct time values into sequencers. Regards, Mike ----- Original Message ----- From: "Tim Mortimer" |
Date | 2007-12-16 14:18 |
From | "Dr. Richard Boulanger" |
Subject | [Csnd] Re: Re: Re: --midioutfile properties - bug fix request |
I agree 100%. Our MIDI must be compatible and standard! This is very important and will be even more important with all the OLPC machines running Csound as their main synthesis/dsp engine. -dB On Dec 15, 2007, at 10:44 PM, Michael Gogins wrote: > In my view, the header should be changed. MIDI files output by > Csound should be playable in standard MIDI file players and > importable with correct time values into sequencers. > > Regards, > Mike > > ----- Original Message ----- From: "Tim Mortimer" > |
Date | 2007-12-17 10:15 |
From | jpff |
Subject | Re: [Cs-dev] [Csnd] Re: Re: Re: --midioutfile properties - bug fix request |
Anyone going to look at this --midioutfile problem? Not sure who wrote it or who claims it! ==John ffitch "This research is of insufficient standard" >>>>> "Richard" == Richard Boulanger |
Date | 2007-12-17 13:49 |
From | |
Subject | Re: [Cs-dev] [Csnd] Re: Re: Re: --midioutfile properties - bug fix request |
Looking at the code, the problem is in InOut/midisend.c where we have static const unsigned char midiOutFile_header[25] = { 0x4D, 0x54, 0x68, 0x64, /* "MThd" */ 0x00, 0x00, 0x00, 0x06, /* header length */ 0x00, 0x00, /* file type */ 0x00, 0x01, /* number of tracks */ 0xE7, 0x78, /* tick time (1/25 sec / 120) */ 0x4D, 0x54, 0x72, 0x6B, /* "MTrk" */ 0x00, 0x00, 0x00, 0x00, /* track length (updated later) */ /* -------------------------------------------------------- */ 0xFF, 0x2F, 0x00 /* end of track */ }; I assume that the "0xE7, 0x78" is the problem. What should it be? Heading the documentation it could be that the csoundWriteMidiOutFile which outputs events get the calculation of delta-time wrong? ==John ffitch ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |