17 std::shared_ptr<ClipMirAudioReader> reader,
18 std::optional<MIR::ProjectSyncInfo> syncInfo)
19 : mReader {
std::move(reader) }
20 , mSyncInfo { syncInfo }
33 mReader->clip->SetRawAudioTempo(tempo);
41 clip.SetRawAudioTempo(
mSyncInfo->rawAudioTempo);
42 clip.TrimQuarternotesFromRight(
mSyncInfo->excessDurationInQuarternotes);
43 clip.StretchBy(
mSyncInfo->stretchMinimizingPowOfTwo);
AnalyzedWaveClip(std::shared_ptr< ClipMirAudioReader > reader, std::optional< MIR::ProjectSyncInfo > syncInfo)
void Synchronize() override
const std::optional< MIR::ProjectSyncInfo > & GetSyncInfo() const override
const std::shared_ptr< ClipMirAudioReader > mReader
const std::optional< MIR::ProjectSyncInfo > mSyncInfo
void SetRawAudioTempo(double tempo) override