Audiobus: Use your music apps together.
What is Audiobus? — Audiobus is an award-winning music app for iPhone and iPad which lets you use your other music apps together. Chain effects on your favourite synth, run the output of apps or Audio Units into an app like GarageBand or Loopy, or select a different audio interface output for each app. Route MIDI between apps — drive a synth from a MIDI sequencer, or add an arpeggiator to your MIDI keyboard — or sync with your external MIDI gear. And control your entire setup from a MIDI controller.Download on the App Store
Audiobus is the app that makes the rest of your setup better.
AUM AUHost_ blocks timing question
I've got a technical question here for AUv3 plugin development and AUM. If this is the wrong place to ask, please redirect me
I'm trying to figure out how to best schedule events based on the various clocks I have available in my render block. Before messing with audio units, I was just using mach_absolute_time. Now I am trying to choose between AUHostTransportStateBlock's currentSamplePosition, and AUHostMusicalContextBlock's currentBeatPosition.
Should I be using one or the other, or both? I could calculate my own beatPosition using currentSamplePosition and the tempo and sampling rate... but I am guessing it is being passed to ensure that the host and plugin are using the same exact calculations, without any rounding errors etc.
A second question: what's up with sampleOffsetToNextBeat? It's always a huge number (way too big to be the number of samples until the next beat, unless I'm missing something), and it doesn't change much. Is it just uninitialized?