[gmpi] Re: MIDI: Common event coding

  • From: "Martijn Sipkema" <m.j.w.sipkema@xxxxxxxxxxxxxxxxxx>
  • To: <gmpi@xxxxxxxxxxxxx>
  • Date: Wed, 23 Jun 2004 15:13:22 +0100

> > > > > { <address: index 6> <opcode: 2> <operand: float( 3500.9 )> }
> > > >
> > > > how do you idicate that the operand is going to be a float?  Also, I'm
> > > > assuming that the value 3500.9 is guaranteed to be withing the bounds of
> > > > the parameter #6.  Right?
> > > 
> > > Do we also eventually need to specify the endianess and format of floats 
> > > in
> > > these message fields?
> > 
> > That seems something that the host should be able to do.
> 
> For machine-local communications this is not neccesary, it will force
> plugins and hosts on some platforms to both convert out of thier native
> endianness nad back. On intel machines its pretty cheap (about 16 cycles),
> but not free and its uneccesary.

What I meant was that all data should be host-endian, i.e. the host converts
if necessary.

--ms



----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: