21 {
return std::make_shared<ProjectTimeSignature>(); }
121 xmlFile.WriteAttr(
wxT(
"time_signature_tempo"), formats.GetTempo());
122 xmlFile.WriteAttr(
wxT(
"time_signature_upper"), formats.GetUpperTimeSignature());
123 xmlFile.WriteAttr(
wxT(
"time_signature_lower"), formats.GetLowerTimeSignature());
131 {
"time_signature_tempo", [](
auto& signature,
auto value)
133 {
"time_signature_upper", [](
auto& signature,
auto value)
135 {
"time_signature_lower", [](
auto& signature,
auto value)
IntSetting UpperTimeSignature
The upper time signature of the Beats & Measures ruler.
IntSetting LowerTimeSignature
The lower time signature of the Beats & Measures ruler.
DoubleSetting BeatsPerMinute
The tempo used for drawing the Beats & Measures ruler.
audacity::BasicSettings * gPrefs
static const AttachedProjectObjects::RegisteredFactory key
static ProjectFileIORegistry::AttributeWriterEntry entry
static ProjectFileIORegistry::AttributeReaderEntries entries
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Client code makes static instance from a factory of attachments; passes it to Get or Find as a retrie...
CallbackReturn Publish(const TimeSignatureChangedMessage &message)
Send a message to connected callbacks.
double GetBeatDuration() const
double GetQuarterDuration() const
int GetUpperTimeSignature() const
void SetUpperTimeSignature(int upperTimeSignature)
void SetLowerTimeSignature(int lowerTimeSignature)
double GetBarDuration() const
void SetTempo(double tempo)
static ProjectTimeSignature & Get(AudacityProject &project)
int GetLowerTimeSignature() const
~ProjectTimeSignature() override
void PublishSignatureChange()
bool Write(const T &value)
Write value to config and return true if successful.
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined */
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
virtual bool Flush() noexcept=0
Typically statically constructed.