11namespace tracktion {
inline namespace engine
60BeatPosition
getNext (LaunchQType,
const TempoSequence&, BeatPosition)
noexcept;
63BeatPosition
getNext (LaunchQType,
const tempo::Sequence&, BeatPosition)
noexcept;
The Tracktion Edit class!
Represents a launch quantisation.
BeatPosition getNext(BeatPosition) const noexcept
Returns the next beat quantised to the current type.
juce::CachedValue< LaunchQType > type
The current type property.
Edit & edit
The Edit this belongs to.
juce::String getName(LaunchQType t)
Retuns the name of a LaunchQType for display purposes.
double toBarFraction(LaunchQType q) noexcept
Returns the fraction of a bar to be used for a given rate type.
BeatPosition getNext(LaunchQType q, const tempo::Sequence &ts, BeatPosition pos) noexcept
Returns the next quantised position.
std::optional< LaunchQType > launchQTypeFromName(const juce::String &name)
Returns a the launch Q from a string returned from getLaunchQTypeChoices().
LaunchQType fromBarFraction(double f) noexcept
Returns the fraction of a bar to be used for a given rate type.
juce::StringArray getLaunchQTypeChoices()
Returns a list of quantisation type options in the order of LaunchQType.
Represents a position in beats.