Audacity 3.2.0
|
#include <PitchAndSpeedDialog.h>
Classes | |
struct | PitchShift |
struct | StrongTarget |
Public Member Functions | |
PitchAndSpeedDialog (AudacityProject &project) | |
PitchAndSpeedDialog & | Retarget (const std::shared_ptr< WaveTrack > &track, const WaveTrack::IntervalHolder &wideClip) |
PitchAndSpeedDialog & | SetFocus (const std::optional< PitchAndSpeedDialogGroup > &group) |
void | TryRetarget (const TrackPanelMouseEvent &event) |
Public Member Functions inherited from wxDialogWrapper | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Public Member Functions inherited from ClientData::Base | |
virtual | ~Base () |
Static Public Member Functions | |
static PitchAndSpeedDialog & | Get (AudacityProject &project) |
static const PitchAndSpeedDialog & | Get (const AudacityProject &project) |
static void | Destroy (AudacityProject &project) |
Private Member Functions | |
bool | Show (bool show) override |
void | SetFocus () override |
void | PopulateOrExchange (ShuttleGui &s) |
void | SetSemitoneShift () |
bool | SetClipSpeed () |
void | UpdateDialog () |
void | UpdateHistory (const TranslatableString &desc) |
std::optional< StrongTarget > | LockTarget () |
Private Attributes | |
AudacityProject & | mProject |
const wxString | mTitle |
Observer::Subscription | mProjectCloseSubscription |
Observer::Subscription | mAudioIOSubscription |
Observer::Subscription | mClipDeletedSubscription |
Observer::Subscription | mClipCentShiftChangeSubscription |
Observer::Subscription | mClipSpeedChangeSubscription |
double | mClipSpeed = 100 |
double | mOldClipSpeed = mClipSpeed |
PitchShift | mShift |
PitchShift | mOldShift |
std::weak_ptr< WaveClip > | mLeftClip |
std::weak_ptr< WaveClip > | mRightClip |
std::weak_ptr< WaveTrack > | mTrack |
bool | mConsolidateHistory = true |
bool | mFirst = true |
bool | mFormantPreservation = false |
bool | mOldFormantPreservation = mFormantPreservation |
Definition at line 30 of file PitchAndSpeedDialog.h.
PitchAndSpeedDialog::PitchAndSpeedDialog | ( | AudacityProject & | project | ) |
Definition at line 166 of file PitchAndSpeedDialog.cpp.
|
static |
Definition at line 155 of file PitchAndSpeedDialog.cpp.
References GetAttachedWindows(), anonymous_namespace{PitchAndSpeedDialog.cpp}::key, and project.
|
static |
Definition at line 144 of file PitchAndSpeedDialog.cpp.
References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), GetAttachedWindows(), anonymous_namespace{PitchAndSpeedDialog.cpp}::key, and project.
Referenced by Get(), WaveTrackAffordanceHandle::Release(), SelectHandle::Release(), WaveChannelView::SelectNextClip(), and WaveTrackAffordanceControls::StartEditSelectedClipSpeed().
|
static |
Definition at line 150 of file PitchAndSpeedDialog.cpp.
References Get(), and project.
|
private |
Definition at line 429 of file PitchAndSpeedDialog.cpp.
References mLeftClip, and mTrack.
Referenced by PopulateOrExchange(), SetClipSpeed(), and SetSemitoneShift().
|
private |
Definition at line 287 of file PitchAndSpeedDialog.cpp.
References ShuttleGui::AddSpace(), BasicUI::CallAfter(), PitchAndSpeedDialog::PitchShift::cents, Default, WaveTrackUtilities::ExpandClipTillNextOne(), ProjectAudioIO::Get(), ShuttleGui::Id(), ProjectAudioIO::IsAudioActive(), LockTarget(), TimeAndPitchInterface::MaxCents, mClipSpeed, mFormantPreservation, TimeAndPitchInterface::MinCents, mProject, mShift, ShuttleGui::Name(), OptimizeForVoice, safenew, PitchAndSpeedDialog::PitchShift::semis, anonymous_namespace{PitchAndSpeedDialog.cpp}::semitoneCtrlId, ShuttleGuiBase::SetBorder(), SetClipSpeed(), SetSemitoneShift(), anonymous_namespace{PitchAndSpeedDialog.cpp}::speedCtrlId, ShuttleGuiBase::TieCheckBox(), ShuttleGuiBase::TieSpinControl(), ShuttleGuiBase::TieSpinCtrl(), UpdateDialog(), and XO().
Referenced by Retarget(), and UpdateDialog().
PitchAndSpeedDialog & PitchAndSpeedDialog::Retarget | ( | const std::shared_ptr< WaveTrack > & | track, |
const WaveTrack::IntervalHolder & | wideClip | ||
) |
Definition at line 216 of file PitchAndSpeedDialog.cpp.
References PitchAndSpeedDialog::PitchShift::cents, eIsCreating, eIsSettingToDialog, anonymous_namespace{PitchAndSpeedDialog.cpp}::GetClipShift(), mClipCentShiftChangeSubscription, mClipDeletedSubscription, mClipSpeed, mClipSpeedChangeSubscription, mConsolidateHistory, mFirst, mFormantPreservation, mLeftClip, mOldClipSpeed, mOldFormantPreservation, mOldShift, mShift, mTitle, mTrack, CentShiftChange::newValue, StretchRatioChange::newValue, OptimizeForVoice, PopulateOrExchange(), PitchAndSpeedDialog::PitchShift::semis, Show(), anonymous_namespace{PitchAndSpeedDialog.cpp}::ToSemitonesAndCents(), and UpdateDialog().
Referenced by WaveChannelView::SelectNextClip(), WaveTrackAffordanceControls::StartEditSelectedClipSpeed(), and TryRetarget().
|
private |
Definition at line 394 of file PitchAndSpeedDialog.cpp.
References anonymous_namespace{PitchAndSpeedDialog.cpp}::IsExactlySelected(), LockTarget(), mClipSpeed, mLeftClip, mProject, WaveClipUIUtilities::SelectClip(), TimeStretching::SetClipStretchRatio(), UpdateHistory(), and XO().
Referenced by PopulateOrExchange().
|
inlineoverrideprivate |
Definition at line 67 of file PitchAndSpeedDialog.h.
References BasicUI::SetFocus().
PitchAndSpeedDialog & PitchAndSpeedDialog::SetFocus | ( | const std::optional< PitchAndSpeedDialogGroup > & | group | ) |
Definition at line 268 of file PitchAndSpeedDialog.cpp.
References Pitch, anonymous_namespace{PitchAndSpeedDialog.cpp}::semitoneCtrlId, BasicUI::SetFocus(), ExportProgressUI::Show(), and anonymous_namespace{PitchAndSpeedDialog.cpp}::speedCtrlId.
Referenced by WaveTrackAffordanceControls::StartEditSelectedClipSpeed().
|
private |
Definition at line 439 of file PitchAndSpeedDialog.cpp.
References PitchAndSpeedDialog::PitchShift::cents, anonymous_namespace{PitchAndSpeedDialog.cpp}::ClampPitchShift(), TrackPanel::Get(), LockTarget(), mProject, mShift, TrackPanel::RefreshTrack(), PitchAndSpeedDialog::PitchShift::semis, UpdateHistory(), and XO().
Referenced by PopulateOrExchange().
|
inlineoverrideprivate |
Definition at line 63 of file PitchAndSpeedDialog.h.
References ExportProgressUI::Show().
Referenced by Retarget().
void PitchAndSpeedDialog::TryRetarget | ( | const TrackPanelMouseEvent & | event | ) |
Definition at line 208 of file PitchAndSpeedDialog.cpp.
References anonymous_namespace{PitchAndSpeedDialog.cpp}::GetHitClip(), mLeftClip, mProject, and Retarget().
Referenced by WaveTrackAffordanceHandle::Release(), and SelectHandle::Release().
|
private |
Definition at line 415 of file PitchAndSpeedDialog.cpp.
References eIsSettingToDialog, PopulateOrExchange(), and S.
Referenced by PopulateOrExchange(), and Retarget().
|
private |
Definition at line 421 of file PitchAndSpeedDialog.cpp.
References CONSOLIDATE, anonymous_namespace{ExportPCM.cpp}::desc, ProjectHistory::Get(), mConsolidateHistory, mProject, NONE, and ProjectHistory::PushState().
Referenced by SetClipSpeed(), and SetSemitoneShift().
|
private |
Definition at line 89 of file PitchAndSpeedDialog.h.
|
private |
Definition at line 91 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 90 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 93 of file PitchAndSpeedDialog.h.
Referenced by PopulateOrExchange(), Retarget(), and SetClipSpeed().
|
private |
Definition at line 92 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 100 of file PitchAndSpeedDialog.h.
Referenced by Retarget(), and UpdateHistory().
|
private |
Definition at line 101 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 102 of file PitchAndSpeedDialog.h.
Referenced by PopulateOrExchange(), and Retarget().
|
private |
Definition at line 97 of file PitchAndSpeedDialog.h.
Referenced by LockTarget(), Retarget(), SetClipSpeed(), and TryRetarget().
|
private |
Definition at line 94 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 103 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 96 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 86 of file PitchAndSpeedDialog.h.
Referenced by PopulateOrExchange(), SetClipSpeed(), SetSemitoneShift(), TryRetarget(), and UpdateHistory().
|
private |
Definition at line 88 of file PitchAndSpeedDialog.h.
|
private |
Definition at line 98 of file PitchAndSpeedDialog.h.
|
private |
Definition at line 95 of file PitchAndSpeedDialog.h.
Referenced by PopulateOrExchange(), Retarget(), and SetSemitoneShift().
|
private |
Definition at line 87 of file PitchAndSpeedDialog.h.
Referenced by Retarget().
|
private |
Definition at line 99 of file PitchAndSpeedDialog.h.
Referenced by LockTarget(), and Retarget().