Interface AudioSampleClock
- All Known Implementing Classes:
PAGranularInstrument,PASamplerInstrument,PASamplerInstrumentPool,PASamplerInstrumentPoolMulti
public interface AudioSampleClock
Minimal contract for an audio-rate sample clock.
AudioSampleClock lets application code schedule multiple synth engines against
one shared notion of audio time without depending on the implementation that owns the clock.
A sampler, granular instrument, dedicated transport UGen, or future external-sync adapter
can implement this interface as long as it can report an absolute sample cursor and the
sample rate used to interpret that cursor.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the current absolute sample time for this clock.floatReturns the sample rate used by this clock.
-
Method Details
-
getCurrentSampleTime
long getCurrentSampleTime()Returns the current absolute sample time for this clock.- Returns:
- current sample cursor
-
getSampleRate
float getSampleRate()Returns the sample rate used by this clock.- Returns:
- sample rate in Hz
-