I've filed FB25609451 and I'm posting it here so other Audio Unit developers can add their own feedback if they need the same.
What I'd love in Logic Pro (and any AU host) is what REAPER already does for plug-ins: you insert the plug-in and it immediately knows the whole song, every bar's time signature and tempo, without playing anything, and it updates right away when you change a signature or tempo. In REAPER this works through its host interface (IReaperHostApplication): the plug-in calls TimeMap_GetMeasureInfo to read the start, time signature and tempo of any bar.
For Audio Units today, HostCallback_GetBeatAndTempo / HostCallback_GetMusicalTimeLocation (AUv2) and musicalContextBlock / transportStateBlock (AUv3) give the current tempo and time signature, but nothing about the other bars. So a time-aware plug-in has to hear the song played through once, or the user pastes the Signature List into it and redoes it after every edit.
Suggestion, read-only:
- A way for an Audio Unit to read the project's tempo and signature map (Signature track and Tempo track), for example a host callback for AUv2 and a block or property on
AUAudioUnitfor AUv3, returning every event with its position, time signature and tempo. - A notification when the user edits them.
Also useful: the current bar number in musicalContextBlock / HostCallback_GetMusicalTimeLocation, and the playback rate during Varispeed.
It would help click and count-in tools, arpeggiators and sequencers, tempo-synced effects, and notation or visual displays. If you need this too, filing your own feedback that mentions FB25609451 helps.
Leo Margarit, Margarit Audio (OddClick)