Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MU4] playback_integration #10701

Merged
merged 28 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0f723dd
Fixed missing wind instruments setup data
vpereverzev Mar 1, 2022
a5db429
Introduced InstrumentTrackId type
vpereverzev Mar 1, 2022
c9cc3b3
Added support for ChordLine articulations
vpereverzev Mar 1, 2022
08e55a5
Added processing for fermata elements
vpereverzev Mar 1, 2022
59461d5
Added processing for hairpins
vpereverzev Mar 1, 2022
d1c1854
Fixed an issue with tempo recalculations
vpereverzev Mar 1, 2022
2df3ed5
Extended supported playing techniques with Distortion and Overdrive
vpereverzev Mar 1, 2022
74110d0
Added missing SymId for symbols meta parser
vpereverzev Mar 1, 2022
720f3c1
Added playback setup data for Metronome
vpereverzev Mar 1, 2022
ffeaecd
Fixed an issue with wrong pitch range calculations for Glissando
vpereverzev Mar 1, 2022
96b5d06
Fixed an issue with tied notes playback
vpereverzev Mar 1, 2022
8365cbb
Fixed an issue with the loading of PlaybackModel considering expand r…
vpereverzev Mar 1, 2022
187ec99
Actualized playback model unit tests
vpereverzev Mar 1, 2022
c74263f
Implemented AbstractSynthesizer as a base implementation for Fluid, V…
vpereverzev Mar 1, 2022
e4ee5f7
Reworked fluid synthesizer wrapper
vpereverzev Mar 1, 2022
d88cf92
Reworked VST synthesizer wrapper
vpereverzev Mar 1, 2022
3465d83
Integrated EventAudioSource into audio-engine
vpereverzev Mar 1, 2022
5aa66d8
Added convenient method for SharedHashMap container
vpereverzev Mar 1, 2022
74780b9
Added missing articulations in MPE definitions
vpereverzev Mar 1, 2022
1daff96
Replaced MasterNotationMidiData with NotationPlayback
vpereverzev Mar 1, 2022
a86673c
Prevent undo-stack notifications without any valid updates
vpereverzev Mar 1, 2022
9bcf979
Added notification for PlayRepeats setting
vpereverzev Mar 1, 2022
966736f
Actualized PlaybackController with the usage of INotationPlayback
vpereverzev Mar 1, 2022
c1e183c
Fixed an issue with Metronome audio params updates
vpereverzev Mar 1, 2022
5486197
Got rid of unnecessary assert
vpereverzev Mar 1, 2022
348b7db
Added switch for Limiter and Compressor
vpereverzev Mar 1, 2022
f6ae8b0
Changed default duration for off-stream playback
vpereverzev Mar 1, 2022
c2cdb78
Fixed a couple of crashes
vpereverzev Mar 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added notification for PlayRepeats setting
  • Loading branch information
vpereverzev committed Mar 1, 2022
commit 9bcf979f59f9cacca0c20a7f70ce641a49745be3
1 change: 1 addition & 0 deletions src/notation/inotationconfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class INotationConfiguration : MODULE_EXPORT_INTERFACE

virtual bool isPlayRepeatsEnabled() const = 0;
virtual void setIsPlayRepeatsEnabled(bool enabled) = 0;
virtual async::Notification isPlayRepeatsChanged() const = 0;

virtual bool isMetronomeEnabled() const = 0;
virtual void setIsMetronomeEnabled(bool enabled) = 0;
Expand Down
6 changes: 6 additions & 0 deletions src/notation/internal/notationconfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,12 @@ void NotationConfiguration::setIsPlayRepeatsEnabled(bool enabled)
{
settings()->setSharedValue(IS_PLAY_REPEATS_ENABLED, Val(enabled));
Ms::MScore::playRepeats = enabled;
m_isPlayRepeatsChanged.notify();
}

Notification NotationConfiguration::isPlayRepeatsChanged() const
{
return m_isPlayRepeatsChanged;
}

bool NotationConfiguration::isMetronomeEnabled() const
Expand Down
2 changes: 2 additions & 0 deletions src/notation/internal/notationconfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class NotationConfiguration : public INotationConfiguration, public async::Async

bool isPlayRepeatsEnabled() const override;
void setIsPlayRepeatsEnabled(bool enabled) override;
async::Notification isPlayRepeatsChanged() const override;

bool isMetronomeEnabled() const override;
void setIsMetronomeEnabled(bool enabled) override;
Expand Down Expand Up @@ -196,6 +197,7 @@ class NotationConfiguration : public INotationConfiguration, public async::Async
async::Notification m_instrumentListPathsChanged;
async::Notification m_scoreOrderListPathsChanged;
async::Notification m_isLimitCanvasScrollAreaChanged;
async::Notification m_isPlayRepeatsChanged;
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/notation/view/notationpaintview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ INotationInteractionPtr NotationPaintView::notationInteraction() const

INotationPlaybackPtr NotationPaintView::notationPlayback() const
{
return notation() ? notation()->playback() : nullptr;
return globalContext()->currentMasterNotation() ? globalContext()->currentMasterNotation()->playback() : nullptr;
}

INotationNoteInputPtr NotationPaintView::notationNoteInput() const
Expand Down