PS-80 GrandComp Analyzer 1.2
Loading...
Searching...
No Matches
audio_config.h
Go to the documentation of this file.
1/******************************************************************************
2 ** @file audio_config.h
3 ** @brief Global configuration constants and types for the PS-80 GrandComp Analyzer.
4 ** * This file defines the core mathematical and technical parameters used by the
5 ** audio engine to ensure signal integrity and consistent waveform extraction.
6 ** @author Patrik Källback
7 ** @version 1.2
8 ** @copyright Copyright (c) 2026 Patrik Källback
9 ** @license SPDX-License-Identifier: MIT
10 ** @date 2026-02-17
11 ******************************************************************************/
12
13#ifndef AUDIO_CONFIG_H
14#define AUDIO_CONFIG_H
15
16#include <QtGlobal>
17
24namespace AudioConfig {
25
27inline constexpr int WAVESHAPE_LEN{2048};
28
30inline constexpr int WAVESHAPE_MINLEN{512};
31
33inline constexpr int SAMPLE_RATE{44100};
34
36inline constexpr float DEFAULT_FREQ{55.0f};
37
39inline constexpr int COARSE_MOD{100};
40
42inline constexpr int MEDIUM_MOD{10};
43
45inline constexpr int FINE_MOD{1};
46
53enum class PlayMode {
56};
57
58} // namespace AudioConfig
59
60#endif // AUDIO_CONFIG_H
Contains centralized audio parameters and engine state definitions.
constexpr int SAMPLE_RATE
Standard system sample rate in Hz.
Definition audio_config.h:33
constexpr int WAVESHAPE_LEN
The fixed buffer length for a single-cycle waveform (e.g., for wavetable synthesis).
Definition audio_config.h:27
constexpr int MEDIUM_MOD
The medium modification value when modifying waveshape.
Definition audio_config.h:42
constexpr int WAVESHAPE_MINLEN
The minimum buffer length for a single-cycle waveform (e.g., for wavetable synthesis).
Definition audio_config.h:30
constexpr float DEFAULT_FREQ
The reference frequency (A1) used for precise cycle extraction.
Definition audio_config.h:36
constexpr int COARSE_MOD
The coars modification value when modifying waveshape.
Definition audio_config.h:39
constexpr int FINE_MOD
The fine modification value when modifying waveshape.
Definition audio_config.h:45
PlayMode
Defines the operational states of the audio playback engine.
Definition audio_config.h:53
@ WavFile
Definition audio_config.h:55
@ Waveform
Definition audio_config.h:54