[PD] midifile

Krzysztof Czaja czaja at chopin.edu.pl
Wed Nov 9 11:48:45 CET 2005


hi Martin,

Pall Thayer wrote:
> Here's the code I've edited:
> 
> // if PPC, define _BIG_ENDIAN
> 
> #define    _BIG_ENDIAN
> 
> /*#ifdef MSW
...

you could escape the config hell at the expense of adding
a single condition (which is not much in a file reading code).
See Miller's g_array.c, garray_ambigendian().  The flag can be
saved in a static variable during class setup.

Btw, there is a midi file reader and writer in cyclone (it is
called seq).  Being its maintainer, but without an easy access
to a big-endian machine, I wonder if it works there...

Krzysztof





More information about the Pd-list mailing list