Audacity 3.2.0
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
TimeAndPitchInterface Class Referenceabstract

#include <TimeAndPitchInterface.h>

Inheritance diagram for TimeAndPitchInterface:


struct  Parameters

Public Member Functions

virtual void GetSamples (float *const *, size_t)=0
virtual void OnCentShiftChange (int cents)=0
virtual void OnFormantPreservationChange (bool preserve)=0
virtual ~TimeAndPitchInterface ()

Static Public Member Functions

static bool IsPassThroughMode (double stretchRatio)

Static Public Attributes

static constexpr auto MaxCents = 1200
static constexpr auto MinCents = -1200

Detailed Description

Definition at line 25 of file TimeAndPitchInterface.h.

Constructor & Destructor Documentation

◆ ~TimeAndPitchInterface()

TimeAndPitchInterface::~TimeAndPitchInterface ( )

Member Function Documentation

◆ GetSamples()

virtual void TimeAndPitchInterface::GetSamples ( float *const *  ,
pure virtual

Implemented in StaffPadTimeAndPitch.

◆ IsPassThroughMode()

bool TimeAndPitchInterface::IsPassThroughMode ( double  stretchRatio)

Definition at line 9 of file TimeAndPitchInterface.cpp.

11 return std::fabs(stretchRatio - 1.) < 1e-6;

Referenced by ClipButtonSpecializations< ClipButtonId::Speed >::DrawOnClip(), anonymous_namespace{ClipPitchAndSpeedButtonHandle.cpp}::GetPlaybackSpeedText(), ClipButtonSpecializations< ClipButtonId::Speed >::NeedsDrawing(), StaffPadTimeAndPitch::StaffPadTimeAndPitch(), and WaveClip::StretchRatioEquals().

Here is the caller graph for this function:

◆ OnCentShiftChange()

virtual void TimeAndPitchInterface::OnCentShiftChange ( int  cents)
pure virtual

Implemented in StaffPadTimeAndPitch.

◆ OnFormantPreservationChange()

virtual void TimeAndPitchInterface::OnFormantPreservationChange ( bool  preserve)
pure virtual

Implemented in StaffPadTimeAndPitch.

Member Data Documentation

◆ MaxCents

constexpr auto TimeAndPitchInterface::MaxCents = 1200

◆ MinCents

constexpr auto TimeAndPitchInterface::MinCents = -1200

The documentation for this class was generated from the following files: