mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 23:51:18 +01:00
Define virtual Track::PasteInto to simplfy Paste...
... Also making EditMenus not dependent on TimeTrack
This commit is contained in:
@@ -683,6 +683,13 @@ QuantizedTimeAndBeat NoteTrack::NearestBeatTime( double time ) const
|
||||
return { seq_time + GetOffset(), beat };
|
||||
}
|
||||
|
||||
Track::Holder NoteTrack::PasteInto( AudacityProject & ) const
|
||||
{
|
||||
auto pNewTrack = std::make_shared<NoteTrack>();
|
||||
pNewTrack->Paste(0.0, this);
|
||||
return pNewTrack;
|
||||
}
|
||||
|
||||
auto NoteTrack::GetIntervals() const -> ConstIntervals
|
||||
{
|
||||
ConstIntervals results;
|
||||
|
||||
Reference in New Issue
Block a user