Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: --midioutfile properties - bug fix request

Date2007-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" 
To: 
Sent: Saturday, December 15, 2007 8:48 PM
Subject: [Csnd] Re: --midioutfile properties - bug fix request


>
> So now (again thanks to Tim Thompson), I understand the Csound midioutfile 
> is
> specifying the tempo in SMPTE frames-per-second and ticks-per-frame, not
> beat divisions
>
> he's sent me a modified keykit that reads this format - at the moment it
> doesn't respond to tempo statements from keykit, but given he's sorted 
> every
> other problem pretty much "on the spot", hopefully this is the final 
> hurdle
> to cross
>
> given i have had little in the way of compatability with this type of 
> header
> with the Csound midi file, i leave it to the developers to determine if a
> change in the header specification is desirable or not. This has been a
> somewhat long & convoluted "workaround" process (i.e. basically hassling
> somebody else into rewriting their program!)
>
>
>
>
>
> -- 
> View this message in context: 
> http://www.nabble.com/the---midioutfile-properties-tp14267381p14357362.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2007-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"  
> 
> To: 
> Sent: Saturday, December 15, 2007 8:48 PM
> Subject: [Csnd] Re: --midioutfile properties - bug fix request
>
>
>>
>> So now (again thanks to Tim Thompson), I understand the Csound  
>> midioutfile is
>> specifying the tempo in SMPTE frames-per-second and ticks-per- 
>> frame, not
>> beat divisions
>>
>> he's sent me a modified keykit that reads this format - at the  
>> moment it
>> doesn't respond to tempo statements from keykit, but given he's  
>> sorted every
>> other problem pretty much "on the spot", hopefully this is the  
>> final hurdle
>> to cross
>>
>> given i have had little in the way of compatability with this type  
>> of header
>> with the Csound midi file, i leave it to the developers to  
>> determine if a
>> change in the header specification is desirable or not. This has  
>> been a
>> somewhat long & convoluted "workaround" process (i.e. basically  
>> hassling
>> somebody else into rewriting their program!)
>>
>>
>>
>>
>>
>> -- 
>> View this message in context: http://www.nabble.com/the--- 
>> midioutfile-properties-tp14267381p14357362.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"


Date2007-12-17 10:15
Fromjpff
SubjectRe: [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  writes:

 Richard> I agree 100%.
 Richard> Our MIDI must be compatible and standard!

 Richard> This is very important and will be even more important with all
 Richard> the OLPC machines running Csound as their main synthesis/dsp engine.

 Richard> -dB


 Richard> 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"  
 >> 
 >> To: 
 >> Sent: Saturday, December 15, 2007 8:48 PM
 >> Subject: [Csnd] Re: --midioutfile properties - bug fix request
 >> 
 >> 
 >>> 
 >>> So now (again thanks to Tim Thompson), I understand the Csound  
 >>> midioutfile is
 >>> specifying the tempo in SMPTE frames-per-second and ticks-per- 
 >>> frame, not
 >>> beat divisions
 >>> 
 >>> he's sent me a modified keykit that reads this format - at the  
 >>> moment it
 >>> doesn't respond to tempo statements from keykit, but given he's  
 >>> sorted every
 >>> other problem pretty much "on the spot", hopefully this is the  
 >>> final hurdle
 >>> to cross
 >>> 
 >>> given i have had little in the way of compatability with this type  
 >>> of header
 >>> with the Csound midi file, i leave it to the developers to  
 >>> determine if a
 >>> change in the header specification is desirable or not. This has  
 >>> been a
 >>> somewhat long & convoluted "workaround" process (i.e. basically  
 >>> hassling
 >>> somebody else into rewriting their program!)
 >>> 
 >>> 
 >>> 
 >>> 
 >>> 
 >>> -- 
 >>> View this message in context: http://www.nabble.com/the--- 
 >>> midioutfile-properties-tp14267381p14357362.html
 >>> Sent from the Csound - General mailing list archive at Nabble.com.
 >>> 
 >>> 
 >>> 
 >>> Send bugs reports to this list.
 >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
 >>> "unsubscribe csound"
 >> 
 >> 
 >> 
 >> Send bugs reports to this list.
 >> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
 >> "unsubscribe csound"



 Richard> Send bugs reports to this list.
 Richard> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




-------------------------------------------------------------------------
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

Date2007-12-17 13:49
From
SubjectRe: [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