[PD] midifile

Martin Peach martinrp at vax2.concordia.ca
Tue Nov 8 18:38:27 CET 2005


You need to add a line in midifile.c where it has:
// if PPC, define _BIG_ENDIAN
put this:
#define _BIG_ENDIAN
If that doesn't work, there is a bug in my byteswapping code or the file 
isn't a midi file.

Martin

Pall Thayer wrote:

> Hi, trying to compile this on OS X. Don't really know what I'm doing  
> but got it to compile and now it gives me errors that look like this:
>
> Opened /Users/palli/downloads/Chestnuts_Roasting.mid
> Header chunk type: MThd
> Header chunk length: 100663296
> error: midifile_read_header_chunk: bad file format: bad header chunk  
> length
>
> Regardless of what I open, it always looks identical except for the  
> name of the file. Any ideas?
>
> Pall
>
> On 31.10.2005, at 14:17, Martin Peach wrote:
>
>> I have posted my external for reading midi files here:
>>
>> http://puredata.info/Members/martinrp
>>
>> There is code and a compiled dll for windoze as well as a shell  
>> script to compile it for lignux, and a help patch. Should work on  
>> OSX too with slight changes (define _BIG_ENDIAN for ppc).
>>
>> Midifile reads type 0 and 1 SMF (.mid) files and may work on type  2; 
>> it should ignore any non-standard meta codes.
>> Please let me know how you got it to crash ;)
>> Write functionality may be forthcoming in a few weeks...
>>
>> Martin
>>
>>
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
>> listinfo/pd-list
>
>
>
>
> -- 
> Pall Thayer
> palli at pallit.lhi.is
> http://www.this.is/pallit
>
>
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
>





More information about the Pd-list mailing list