-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10931 from fwcd/var-bpm-analysis-override
Analysis: Add support for overriding variable/constant BPM on a per-track basis
- Loading branch information
Showing
33 changed files
with
277 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "analyzer/analyzerscheduledtrack.h" | ||
|
||
#include "analyzer/analyzertrack.h" | ||
#include "track/trackid.h" | ||
|
||
AnalyzerScheduledTrack::AnalyzerScheduledTrack(TrackId trackId, AnalyzerTrack::Options options) | ||
: m_trackId(trackId), m_options(options) { | ||
} | ||
|
||
const TrackId& AnalyzerScheduledTrack::getTrackId() const { | ||
return m_trackId; | ||
} | ||
|
||
const AnalyzerTrack::Options& AnalyzerScheduledTrack::getOptions() const { | ||
return m_options; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include <optional> | ||
|
||
#include "analyzer/analyzertrack.h" | ||
#include "track/track_decl.h" | ||
#include "track/trackid.h" | ||
|
||
/// A track to be scheduled for analysis with additional options. | ||
class AnalyzerScheduledTrack { | ||
public: | ||
AnalyzerScheduledTrack(TrackId trackId, | ||
AnalyzerTrack::Options options = AnalyzerTrack::Options()); | ||
|
||
/// Fetches the id of the track to be analyzed. | ||
const TrackId& getTrackId() const; | ||
|
||
/// Fetches the additional options. | ||
const AnalyzerTrack::Options& getOptions() const; | ||
|
||
private: | ||
/// The id of the track to be analyzed. | ||
TrackId m_trackId; | ||
/// The additional options. | ||
AnalyzerTrack::Options m_options; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.