[gmpi] Re: Topic 6: Time representation

  • From: "Angus F. Hewlett" <amulet@xxxxxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Wed, 30 Apr 2003 12:51:08 -0400 (EDT)

On Wed, 30 Apr 2003 RonKuper@xxxxxxxxxxxx wrote:

> You don't necessarily need to provide the tempo map, just a way to ask the
> host to convert from absolute time to musical time.  The host can manage the
> complexities of the tempo map in that case.

Why is conversion to musical time outside of the current block needed? The
plugin knows what the tempo is throughout the block (because it sees tempo
events); it knows the sample time and the last reported musical time (sync
point) and can easily calculate from there. Provided the musical sync
pulses are sent at a reasonable frequency (particularly if the tempo is
changing) there's no absolute need for the host to perform any conversion,
although either the host or API probably should provide some conversion
services to make things easier for developers to do common conversions.

Regards,
        Angus.



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