-
Notifications
You must be signed in to change notification settings - Fork 7
/
transverb-base.h
76 lines (55 loc) · 2.42 KB
/
transverb-base.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*------------------------------------------------------------------------
Copyright (C) 2001-2022 Tom Murphy 7 and Sophia Poirier
This file is part of Transverb.
Transverb is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
Transverb is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Transverb. If not, see <http:https://www.gnu.org/licenses/>.
To contact the author, use the contact form at http:https://destroyfx.org/
------------------------------------------------------------------------*/
#pragma once
#include <array>
#include "dfxpluginproperties.h"
namespace dfx::TV
{
//-----------------------------------------------------------------------------
// these are the plugin parameters:
enum
{
kBsize,
kSpeed1,
kFeed1,
kDist1,
kSpeed2,
kFeed2,
kDist2,
kDrymix,
kMix1,
kMix2,
kQuality,
kTomsound,
kFreeze,
kAttenuateFeedbackByMixLevel,
kDistChangeMode,
kNumParameters
};
static constexpr size_t kNumDelays = 2;
static constexpr std::array<long, kNumDelays> kSpeedParameters { kSpeed1, kSpeed2 };
static constexpr std::array<long, kNumDelays> kFeedParameters { kFeed1, kFeed2 };
static constexpr std::array<long, kNumDelays> kDistParameters { kDist1, kDist2 };
static constexpr std::array<long, kNumDelays> kMixParameters { kMix1, kMix2 };
enum { kQualityMode_DirtFi, kQualityMode_HiFi, kQualityMode_UltraHiFi, kQualityMode_NumModes };
// this stuff is for the speed parameter adjustment mode switch on the GUI
enum { kSpeedMode_Fine, kSpeedMode_Semitone, kSpeedMode_Octave, kSpeedMode_NumModes };
static constexpr dfx::PropertyID kTransverbProperty_SpeedModeBase = dfx::kPluginProperty_EndOfList;
enum { kDistChangeMode_Reverse, kDistChangeMode_AdHocVarispeed, kDistChangeMode_DistanceVarispeed, kDistChangeMode_BufferVarispeed, kDistChangeMode_LoopingBufferVarispeed, kDistChangeMode_Count };
dfx::PropertyID speedModeIndexToPropertyID(size_t inIndex) noexcept;
size_t speedModePropertyIDToIndex(dfx::PropertyID inPropertyID) noexcept;
bool isSpeedModePropertyID(dfx::PropertyID inPropertyID) noexcept;
} // namespace