Debian Codegraph @

plugins/dragonfly-room-reverb/DistrhoPluginInfo.h

raw
1 /*
2 * Dragonfly Reverb, copyright (c) 2019 Michael Willis, Rob van den Berg
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 3 of
7 * the License, or any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * For a full copy of the GNU General Public License see the LICENSE file.
15 */
16
17 #include <cstdint>
18 #include <Param.hpp>
19
20 #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
21 #define DISTRHO_PLUGIN_INFO_H_INCLUDED
22
23 #define DISTRHO_PLUGIN_BRAND "Dragonfly"
24 #define DISTRHO_PLUGIN_NAME "Dragonfly Room Reverb"
25 #define DISTRHO_PLUGIN_URI "urn:dragonfly:room"
26 #define DISTRHO_PLUGIN_CLAP_ID "michaelwillis.dragonfly.room"
27
28 #define DISTRHO_PLUGIN_HAS_UI 1
29 #define DISTRHO_PLUGIN_IS_RT_SAFE 1
30 #define DISTRHO_PLUGIN_NUM_INPUTS 2
31 #define DISTRHO_PLUGIN_NUM_OUTPUTS 2
32 #define DISTRHO_PLUGIN_WANT_STATE 1
33
34 #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin"
35 #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Reverb|Stereo"
36 #define DISTRHO_PLUGIN_CLAP_FEATURES "audio-effect", "reverb", "stereo"
37
38 #include "Artwork.hpp"
39
40 #define DISTRHO_UI_DEFAULT_WIDTH Artwork::backgroundWidth
41 #define DISTRHO_UI_DEFAULT_HEIGHT Artwork::backgroundHeight
42
43 enum Parameters
44 {
45 paramDry = 0,
46 paramEarly,
47 paramEarlySend,
48 paramLate,
49 paramSize,
50 paramWidth,
51 paramPredelay,
52 paramDecay,
53 paramDiffuse,
54 paramSpin,
55 paramWander,
56 paramInHighCut,
57 paramEarlyDamp,
58 paramLateDamp,
59 paramBoost,
60 paramBoostLPF,
61 paramInLowCut,
62 paramCount
63 };
64
65 static const Param PARAMS[paramCount] = {
66 {paramDry, "Dry Level", "dry_level", 0.0f, 100.0f, "%"},
67 {paramEarly, "Early Level", "early_level", 0.0f, 100.0f, "%"},
68 {paramEarlySend, "Early Send", "early_send", 0.0f, 100.0f, "%"},
69 {paramLate, "Late Level", "late_level", 0.0f, 100.0f, "%"},
70 {paramSize, "Size", "size", 8.0f, 32.0f, "m"},
71 {paramWidth, "Width", "width", 50.0f, 150.0f, "%"},
72 {paramPredelay, "Predelay", "predelay", 0.0f, 100.0f, "ms"},
73 {paramDecay, "Decay", "decay", 0.1f, 10.0f, "s"},
74 {paramDiffuse, "Diffuse", "diffuse", 0.0f, 100.0f, "%"},
75 {paramSpin, "Spin", "spin", 0.0f, 5.0f, "Hz"},
76 {paramWander, "Wander", "wander", 0.0f, 100.0f, "%"},
77 {paramInHighCut, "High Cut", "in_high_cut", 1000.0f, 16000.0f, "Hz"},
78 {paramEarlyDamp, "Early Damp", "early_damp", 1000.0f, 16000.0f, "Hz"},
79 {paramLateDamp, "Late Damp", "late_damp", 1000.0f, 16000.0f, "Hz"},
80 {paramBoost, "Low Boost", "low_boost", 0.0f, 100.0f, "%"},
81 {paramBoostLPF, "Boost Freq", "boost_freq", 50.0f, 1050.0f, "Hz"},
82 {paramInLowCut, "Low Cut", "in_low_cut", 0.0f, 200.0f, "Hz"}
83 };
84
85 static const int NUM_BANKS = 5;
86 static const int PRESETS_PER_BANK = 5;
87
88 typedef struct {
89 const char *name;
90 const float params[paramCount];
91 } Preset;
92
93 typedef struct {
94 const char *name;
95 const Preset presets[PRESETS_PER_BANK];
96 } Bank;
97
98 static const Bank banks[NUM_BANKS] = {
99 {
100 "Small", { // dry, early, e. send, late, size, width, delay, decay, diffuse, spin, wander, high cut, early damp, late damp, bass boost, boost lpf, low cut
101 {"Small Bright Room", { 80.0, 10.0, 20.0, 20.0, 8.0, 90.0, 4.0, 0.2, 60.0, 0.4, 40.0, 16000, 16000, 16000, 20.0, 600, 4.0}},
102 {"Small Clear Room", { 80.0, 10.0, 20.0, 20.0, 8.0, 90.0, 4.0, 0.2, 60.0, 0.8, 40.0, 16000, 11200, 10000, 40.0, 600, 4.0}},
103 {"Small Dark Room", { 80.0, 10.0, 20.0, 20.0, 8.0, 90.0, 4.0, 0.3, 70.0, 1.6, 20.0, 16000, 6400, 5500, 60.0, 1000, 4.0}},
104 {"Small Drum Room", { 80.0, 10.0, 20.0, 20.0, 9.0, 90.0, 8.0, 0.2, 24.0, 2.1, 10.0, 16000, 8200, 7000, 40.0, 400, 4.0}},
105 {"Small Vocal Room", { 80.0, 10.0, 20.0, 20.0, 8.0, 90.0, 0.0, 0.3, 86.0, 2.4, 12.0, 16000, 7600, 6400, 20.0, 400, 4.0}}
106 }
107 },
108 {
109 "Medium", { // dry, early, e. send, late, size, width, delay, decay, diffuse, spin, wander, high cut, early damp, late damp, bass boost, boost lpf, low cut
110 {"Medium Bright Room", { 80.0, 10.0, 20.0, 20.0, 12.0, 100.0, 8.0, 0.4, 60.0, 0.4, 40.0, 16000, 16000, 14000, 25.0, 600, 4.0}},
111 {"Medium Clear Room", { 80.0, 10.0, 20.0, 20.0, 12.0, 100.0, 8.0, 0.4, 70.0, 0.8, 40.0, 16000, 10000, 9400, 50.0, 600, 4.0}},
112 {"Medium Dark Room", { 80.0, 10.0, 20.0, 20.0, 12.0, 100.0, 8.0, 0.5, 70.0, 1.6, 20.0, 16000, 5800, 4600, 70.0, 1000, 4.0}},
113 {"Medium Drum Room", { 80.0, 10.0, 20.0, 20.0, 12.0, 100.0, 12.0, 0.4, 32.0, 2.4, 10.0, 16000, 8000, 6000, 50.0, 300, 4.0}},
114 {"Medium Vocal Room", { 80.0, 10.0, 20.0, 20.0, 12.0, 100.0, 2.0, 0.6, 92.0, 2.7, 12.0, 16000, 8000, 6000, 25.0, 400, 4.0}}
115 }
116 },
117 {
118 "Large", { // dry, early, e. send, late, size, width, delay, decay, diffuse, spin, wander, high cut, early damp, late damp, bass boost, boost lpf, low cut
119 {"Large Bright Room", { 80.0, 10.0, 20.0, 20.0, 15.0, 100.0, 12.0, 0.7, 70.0, 0.4, 40.0, 16000, 16000, 14000, 30.0, 600, 4.0}},
120 {"Large Clear Room", { 80.0, 10.0, 20.0, 20.0, 15.0, 100.0, 12.0, 0.7, 80.0, 0.4, 40.0, 16000, 9400, 8500, 60.0, 600, 4.0}},
121 {"Large Dark Room", { 80.0, 10.0, 20.0, 20.0, 15.0, 100.0, 12.0, 0.8, 80.0, 1.6, 20.0, 16000, 5200, 4000, 80.0, 1000, 4.0}},
122 {"Large Drum Room", { 80.0, 10.0, 20.0, 20.0, 14.0, 100.0, 16.0, 0.7, 40.0, 2.7, 10.0, 16000, 8000, 5000, 60.0, 300, 4.0}},
123 {"Large Vocal Room", { 80.0, 10.0, 20.0, 20.0, 15.0, 100.0, 4.0, 1.0, 98.0, 3.1, 12.0, 16000, 7000, 5000, 30.0, 400, 4.0}}
124 }
125 },
126 {
127 "Halls", { // dry, early, e. send, late, size, width, delay, decay, diffuse, spin, wander, high cut, early damp, late damp, bass boost, boost lpf, low cut
128 {"Bright Hall", { 80.0, 10.0, 20.0, 20.0, 24.0, 100.0, 12.0, 1.6, 78.0, 0.4, 40.0, 16000, 16000, 14000, 30.0, 600, 4.0}},
129 {"Clear Hall", { 80.0, 10.0, 20.0, 20.0, 24.0, 100.0, 12.0, 1.6, 84.0, 0.4, 40.0, 16000, 14000, 12000, 60.0, 600, 4.0}},
130 {"Dark Hall", { 80.0, 10.0, 20.0, 20.0, 24.0, 100.0, 12.0, 1.9, 80.0, 1.6, 20.0, 16000, 8000, 6000, 80.0, 1000, 4.0}},
131 {"Percussion Hall", { 80.0, 10.0, 20.0, 20.0, 20.0, 100.0, 16.0, 1.5, 40.0, 2.7, 10.0, 16000, 7000, 5000, 60.0, 300, 4.0}},
132 {"Vocal Hall", { 80.0, 10.0, 20.0, 20.0, 25.0, 100.0, 4.0, 2.0, 98.0, 3.1, 12.0, 16000, 6000, 5000, 30.0, 400, 4.0}}
133 }
134 },
135 {
136 "Effects", { // dry, early, e. send, late, size, width, delay, decay, diffuse, spin, wander, high cut, early damp, late damp, bass boost, boost lpf, low cut
137 {"Bright Plate", { 80.0, 10.0, 20.0, 20.0, 10.0, 100.0, 0.0, 1.8, 78.0, 1.6, 40.0, 16000, 16000, 15000, 10.0, 1000, 4.0}},
138 {"Dark Plate", { 80.0, 10.0, 20.0, 20.0, 10.0, 100.0, 0.0, 2.0, 78.0, 0.4, 20.0, 16000, 5200, 4000, 40.0, 500, 4.0}},
139 {"Brick Wall", { 80.0, 10.0, 20.0, 20.0, 20.0, 80.0, 80.0, 0.4, 12.0, 0.2, 5.0, 16000, 16000, 15000, 10.0, 200, 4.0}},
140 {"Echo Chamber", { 80.0, 10.0, 20.0, 20.0, 12.0, 120.0, 10.0, 4.0, 24.0, 2.3, 80.0, 16000, 12000, 9000, 20.0, 500, 4.0}},
141 {"Long Tunnel", { 80.0, 10.0, 20.0, 20.0, 25.0, 50.0, 0.0, 8.0, 90.0, 0.4, 10.0, 16000, 8000, 6000, 50.0, 500, 4.0}},
142 }
143 }
144 };
145
146 static const int DEFAULT_BANK = 1; // Medium Rooms
147 static const int DEFAULT_PRESET = 1; // Second preset in each bank
148
149
150 #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED