Musical note duration for tempo-synchronized timing.
NoteDuration represents musical time durations (whole notes, quarter notes, etc.) and provides conversion to seconds based on tempo from AudioPlayHead. This is useful for tempo-synced delays, LFOs, arpeggiators, and other time-based effects that need to follow the host DAW's tempo.
Key Features:
- Standard musical note durations (whole, half, quarter, etc.)
- Dotted and triplet variations
- Tempo-synchronized conversion to seconds
- Pre-defined list of common durations
- Support for bars and beats
The class stores duration as bars and beats (quarter notes), then converts to seconds using the current tempo from the host's transport.
Usage:
Musical note duration for tempo-synchronized timing.
Definition gin_noteduration.h:43
static const std::vector< NoteDuration > & getNoteDurations()
static float toSeconds(juce::AudioPlayHead *playhead, float value)
A lightweight 2D point class for projects that don't use juce_graphics.
Definition gin_point.h:25
- See also
- Parameter, StepLFO