Audacity  2.2.2
Classes | Macros | Enumerations | Functions | Variables
Reverb.cpp File Reference
#include "../Audacity.h"
#include "Reverb.h"
#include <wx/arrstr.h>
#include <wx/intl.h>
#include "../Prefs.h"
#include "../ShuttleGui.h"
#include "../widgets/valnum.h"
#include "Reverb_libSoX.h"

Go to the source code of this file.

Classes

struct  Reverb_priv_t
 

Macros

#define SpinSliderEvent(n)
 
#define SpinSlider(n, p)
 
#define SetSpinSlider(n)
 
#define SpinSliderHandlers(n)
 

Enumerations

enum  {
  ID_RoomSize = 10000, ID_PreDelay, ID_Reverberance, ID_HfDamping,
  ID_ToneLow, ID_ToneHigh, ID_WetGain, ID_DryGain,
  ID_StereoWidth, ID_WetOnly
}
 

Functions

 Param (RoomSize, double, wxT("RoomSize"), 75, 0, 100, 1)
 
 Param (PreDelay, double, wxT("Delay"), 10, 0, 200, 1)
 
 Param (Reverberance, double, wxT("Reverberance"), 50, 0, 100, 1)
 
 Param (HfDamping, double, wxT("HfDamping"), 50, 0, 100, 1)
 
 Param (ToneLow, double, wxT("ToneLow"), 100, 0, 100, 1)
 
 Param (ToneHigh, double, wxT("ToneHigh"), 100, 0, 100, 1)
 
 Param (WetGain, double, wxT("WetGain"),-1,-20, 10, 1)
 
 Param (DryGain, double, wxT("DryGain"),-1,-20, 10, 1)
 
 Param (StereoWidth, double, wxT("StereoWidth"), 100, 0, 100, 1)
 
 Param (WetOnly, bool, wxT("WetOnly"), false, false, true, 1)
 
 SpinSliderEvent (RoomSize) SpinSliderEvent(PreDelay) SpinSliderEvent(Reverberance) SpinSliderEvent(HfDamping) SpinSliderEvent(ToneLow) SpinSliderEvent(ToneHigh) SpinSliderEvent(WetGain) SpinSliderEvent(DryGain) SpinSliderEvent(StereoWidth) EffectReverb
 
 SpinSliderHandlers (RoomSize) SpinSliderHandlers(PreDelay) SpinSliderHandlers(Reverberance) SpinSliderHandlers(HfDamping) SpinSliderHandlers(ToneLow) SpinSliderHandlers(ToneHigh) SpinSliderHandlers(WetGain) SpinSliderHandlers(DryGain) SpinSliderHandlers(StereoWidth) void EffectReverb
 

Variables

struct {
   const wxChar *   name
 
   EffectReverb::Params   params
 
FactoryPresets []
 
static size_t BLOCK = 16384
 

Macro Definition Documentation

#define SetSpinSlider (   n)
Value:
m ## n ## S->SetValue((int) mParams.m ## n); \
m ## n ## T->SetValue(wxString::Format(wxT("%d"), (int) mParams.m ## n));

Referenced by EffectReverb::TransferDataToWindow().

#define SpinSlider (   n,
 
)
Value:
m ## n ## T = S.Id(ID_ ## n). \
AddSpinCtrl( p, DEF_ ## n, MAX_ ## n, MIN_ ## n); \
S.SetStyle(wxSL_HORIZONTAL); \
m ## n ## S = S.Id(ID_ ## n). \
AddSlider( {}, DEF_ ## n, MAX_ ## n, MIN_ ## n);
#define SpinSliderEvent (   n)
Value:
EVT_SLIDER(ID_ ## n, EffectReverb::On ## n ## Slider) \
EVT_TEXT(ID_ ## n, EffectReverb::On ## n ## Text)

Definition at line 91 of file Reverb.cpp.

#define SpinSliderHandlers (   n)
Value:
void EffectReverb::On ## n ## Slider(wxCommandEvent & evt) \
{ \
if (mProcessingEvent) return; \
mProcessingEvent = true; \
m ## n ## T->SetValue(wxString::Format(wxT("%d"), evt.GetInt())); \
mProcessingEvent = false; \
} \
void EffectReverb::On ## n ## Text(wxCommandEvent & evt) \
{ \
if (mProcessingEvent) return; \
mProcessingEvent = true; \
m ## n ## S->SetValue(TrapLong(evt.GetInt(), MIN_ ## n, MAX_ ## n)); \
mProcessingEvent = false; \
}
if(pTrack &&pTrack->GetDisplay()!=WaveTrack::Spectrum)

Definition at line 512 of file Reverb.cpp.

Enumeration Type Documentation

anonymous enum
Enumerator
ID_RoomSize 
ID_PreDelay 
ID_Reverberance 
ID_HfDamping 
ID_ToneLow 
ID_ToneHigh 
ID_WetGain 
ID_DryGain 
ID_StereoWidth 
ID_WetOnly 

Definition at line 30 of file Reverb.cpp.

Function Documentation

Param ( RoomSize  ,
double  ,
wxT("RoomSize")  ,
75  ,
,
100  ,
 
)
Param ( PreDelay  ,
double  ,
wxT("Delay")  ,
10  ,
,
200  ,
 
)
Param ( Reverberance  ,
double  ,
wxT("Reverberance")  ,
50  ,
,
100  ,
 
)
Param ( HfDamping  ,
double  ,
wxT("HfDamping")  ,
50  ,
,
100  ,
 
)
Param ( ToneLow  ,
double  ,
wxT("ToneLow")  ,
100  ,
,
100  ,
 
)
Param ( ToneHigh  ,
double  ,
wxT("ToneHigh")  ,
100  ,
,
100  ,
 
)
Param ( WetGain  ,
double  ,
wxT("WetGain")  ,
1,
20,
10  ,
 
)
Param ( DryGain  ,
double  ,
wxT("DryGain")  ,
1,
20,
10  ,
 
)
Param ( StereoWidth  ,
double  ,
wxT("StereoWidth")  ,
100  ,
,
100  ,
 
)
Param ( WetOnly  ,
bool  ,
wxT("WetOnly")  ,
false  ,
false  ,
true  ,
 
)
SpinSliderEvent ( RoomSize  )

Definition at line 95 of file Reverb.cpp.

110 {
111  mParams.mRoomSize = DEF_RoomSize;
112  mParams.mPreDelay = DEF_PreDelay;
113  mParams.mReverberance = DEF_Reverberance;
114  mParams.mHfDamping = DEF_HfDamping;
115  mParams.mToneLow = DEF_ToneLow;
116  mParams.mToneHigh = DEF_ToneHigh;
117  mParams.mWetGain = DEF_WetGain;
118  mParams.mDryGain = DEF_DryGain;
119  mParams.mStereoWidth = DEF_StereoWidth;
120  mParams.mWetOnly = DEF_WetOnly;
121 
122  mProcessingEvent = false;
123 
124  SetLinearEffectFlag(true);
125 }
SpinSliderHandlers ( RoomSize  )

Definition at line 528 of file Reverb.cpp.

References _(), Effect::mUIDialog, and name.

541 {
542  wxString title(_("Reverb"));
543 
544  if (!name.IsEmpty())
545  {
546  title += wxT(": ") + name;
547  }
548 
549  mUIDialog->SetTitle(title);
550 }
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
const wxChar * name
Definition: Reverb.cpp:60

Variable Documentation

size_t BLOCK = 16384
static

Definition at line 167 of file Reverb.cpp.

const { ... } FactoryPresets[]
Initial value:
=
{
{ XO("Vocal I" ), { 70, 20, 40, 99, 100, 50, -12, 0, 70, false } },
{ XO("Vocal II"), { 50, 0, 50, 99, 50, 100, -1, -1, 70, false } },
{ XO("Bathroom"), { 16, 8, 80, 0, 0, 100, -6, 0, 100, false } },
{ XO("Small Room Bright"), { 30, 10, 50, 50, 50, 100, -1, -1, 100, false } },
{ XO("Small Room Dark"), { 30, 10, 50, 50, 100, 0, -1, -1, 100, false } },
{ XO("Medium Room"), { 75, 10, 40, 50, 100, 70, -1, -1, 70, false } },
{ XO("Large Room"), { 85, 10, 40, 50, 100, 80, 0, -6, 90, false } },
{ XO("Church Hall"), { 90, 32, 60, 50, 100, 50, 0, -12, 100, false } },
{ XO("Cathedral"), { 90, 16, 90, 50, 100, 0, 0, -20, 100, false } },
}
#define XO(s)
Definition: Internat.h:33

Referenced by EffectReverb::GetFactoryPresets(), and EffectReverb::LoadFactoryPreset().

const wxChar* name

Definition at line 61 of file Reverb.cpp.