Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
tuning.h
1// Reverb model tuning values
2//
3// Written by Jezar at Dreampoint, June 2000
4// http://www.dreampoint.co.uk
5// This code is public domain
6
7/*
8 * Copyright © 2015-2023 Synthstrom Audible Limited
9 *
10 * This file is part of The Synthstrom Audible Deluge Firmware.
11 *
12 * The Synthstrom Audible Deluge Firmware is free software: you can redistribute it and/or modify it under the
13 * terms of the GNU General Public License as published by the Free Software Foundation,
14 * either version 3 of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
17 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 * See the GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along with this program.
21 * If not, see <https://www.gnu.org/licenses/>.
22 */
23
24#pragma once
25#include <cstdint>
26
27constexpr int32_t numcombs = 8;
28constexpr int32_t numallpasses = 4;
29constexpr float muted = 0;
30constexpr float fixedgain = 0.015f;
31constexpr float scalewet = 3;
32constexpr float scaledry = 2;
33constexpr float scaledamp = 0.4f;
34constexpr float scaleroom = 0.28f;
35constexpr float offsetroom = 0.7f;
36constexpr float initialroom = 0.5f;
37constexpr float initialdamp = 0.5f;
38constexpr float initialwet = 1 / scalewet;
39constexpr float initialdry = 0;
40constexpr float initialwidth = 1;
41constexpr int32_t stereospread = 23;
42
43// These values assume 44.1KHz sample rate
44// they will probably be OK for 48KHz sample rate
45// but would need scaling for 96KHz (or other) sample rates.
46// The values were obtained by listening tests.
47constexpr int32_t combtuningL1 = 1116;
48constexpr int32_t combtuningR1 = 1116 + stereospread;
49constexpr int32_t combtuningL2 = 1188;
50constexpr int32_t combtuningR2 = 1188 + stereospread;
51constexpr int32_t combtuningL3 = 1277;
52constexpr int32_t combtuningR3 = 1277 + stereospread;
53constexpr int32_t combtuningL4 = 1356;
54constexpr int32_t combtuningR4 = 1356 + stereospread;
55constexpr int32_t combtuningL5 = 1422;
56constexpr int32_t combtuningR5 = 1422 + stereospread;
57constexpr int32_t combtuningL6 = 1491;
58constexpr int32_t combtuningR6 = 1491 + stereospread;
59constexpr int32_t combtuningL7 = 1557;
60constexpr int32_t combtuningR7 = 1557 + stereospread;
61constexpr int32_t combtuningL8 = 1617;
62constexpr int32_t combtuningR8 = 1617 + stereospread;
63constexpr int32_t allpasstuningL1 = 556;
64constexpr int32_t allpasstuningR1 = 556 + stereospread;
65constexpr int32_t allpasstuningL2 = 441;
66constexpr int32_t allpasstuningR2 = 441 + stereospread;
67constexpr int32_t allpasstuningL3 = 341;
68constexpr int32_t allpasstuningR3 = 341 + stereospread;
69constexpr int32_t allpasstuningL4 = 225;
70constexpr int32_t allpasstuningR4 = 225 + stereospread;
71
72// ends