Skip to content

Commit

Permalink
Fixed extra notification
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 committed Feb 24, 2024
1 parent e77ef01 commit 75649d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/grandorgue/GOMetronome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ void GOMetronome::Load(GOConfigReader &cfg) {

GOWindchest *windchest = new GOWindchest(*m_OrganController);
windchest->Init(cfg, wxT("MetronomeWindchest"), _("Metronome"));
windchest->GetPipeConfig().GetPipeConfig().SetPercussiveFromInit(BOOL3_TRUE);
unsigned samplegroup = m_OrganController->AddWindchest(windchest);

m_rank = new GORank(*m_OrganController);
m_rank->Init(cfg, wxT("MetronomSounds"), _("Metronome"), 36, samplegroup);
m_rank->GetPipeConfig().GetPipeConfig().SetPercussive(BOOL3_TRUE);
m_StopID = m_rank->RegisterStop(NULL);
m_OrganController->AddRank(m_rank);

Expand Down
3 changes: 2 additions & 1 deletion src/grandorgue/model/pipe-config/GOPipeConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ class GOPipeConfig {
void SetLoopLoad(int8_t value) { SetSmallMember(value, m_LoopLoad); }

GOBool3 GetPercussive() const { return m_Percussive; }
void SetPercussive(GOBool3 value) { SetSmallMember(value, m_Percussive); }
// does not send notifications
void SetPercussiveFromInit(GOBool3 value) { m_Percussive = value; }

GOBool3 GetCompress() const { return m_Compress; }
void SetCompress(GOBool3 value) { SetSmallMember(value, m_Compress); }
Expand Down

0 comments on commit 75649d1

Please sign in to comment.