ARA plugin - access the tempo map

Hi :slight_smile:

This is my first plugin, and I’m trying to wrap my head around how the ARA classes interact with each other and the usual classes.

I found that I can access the tempo map from the ARADocumentController (the classe inheriting ARADocumentControllerSpecialisation) with:

		const ARA::PlugIn::HostContentReader<ARA::kARAContentTypeTempoEntries> tempoReader (selectedMusicalContext);
		const ARA::PlugIn::HostContentReader<ARA::kARAContentTypeBarSignatures> barSignaturesReader (selectedMusicalContext);

with selectedMusicalContext from getDocument< ARADocument>().getMusicalContexts().front()

My questions:

  1. How do I send/access that information in the ARAPlaybackRenderer?
  2. Can I print that info somewhere for debugging (ideally in a DAW)?
  3. I’m still confused about the structure of MusicalContexts - is it one per document?
  4. How to make sure my class gets notified when the tempo map is changed? (I guess it’s one of the Listeners, I am just not sure which one)

Thank you so much!
Simon

I guess not many people are making ARA plugins :laughing: