LMMS
Loading...
Searching...
No Matches
OscillatorConstants.h File Reference
#include <array>
#include "LmmsTypes.h"

Go to the source code of this file.

Namespaces

namespace  lmms
namespace  lmms::OscillatorConstants

Typedefs

using lmms::OscillatorConstants::wavetable_t = std::array<sample_t, WAVETABLE_LENGTH>
using lmms::OscillatorConstants::waveform_t = std::array<wavetable_t, WAVE_TABLES_PER_WAVEFORM_COUNT>

Variables

const int lmms::OscillatorConstants::MAX_FREQ = 20000
constexpr int lmms::OscillatorConstants::WAVETABLE_LENGTH = static_cast<int>(MAX_FREQ / 8.176)
const int lmms::OscillatorConstants::SEMITONES_PER_TABLE = 1
const int lmms::OscillatorConstants::WAVE_TABLES_PER_WAVEFORM_COUNT = 128 / SEMITONES_PER_TABLE