|
enum class | ame::NoteValue {
N1_DOT = 2880
, N1 = 1920
, N1_TRIPLET = 1280
, N2_DOT = 1440
,
N2 = 960
, N2_TRIPLET = 640
, N4_DOT = 720
, N4 = 480
,
N4_TRIPLET = 320
, N8_DOT = 360
, N8 = 240
, N8_TRIPLET = 160
,
N16_DOT = 180
, N16 = 120
, N16_TRIPLET = 80
, N32_DOT = 90
,
N32 = 60
, N32_TRIPLET = 40
, N64_DOT = 45
, N64 = 30
,
N64_TRIPLET = 20
, N128 = 15
, N128_TRIPLET = 10
} |
| Enum that associates note values with MIDI ticks. More...
|
|
|
constexpr void | ame::floatToQ23 (const float src[], int32_t dest[], const uint32_t blockSize) |
|
constexpr void | ame::q23ToFloat (const int32_t src[], float dest[], const uint32_t blockSize) |
|
constexpr void | ame::interleaveSamples (const float **source, float *dest, const uint_fast32_t numSamples, const uint_fast32_t numChannels) |
| Split channel→Interleave conversion. More...
|
|
void | ame::deinterleaveSamples (const float *source, float **dest, const uint_fast32_t numSamples, const uint_fast32_t numChannels) |
| Interleave→Split channel conversion. More...
|
|
float | ame::semitoneToRatio (const float semitone) |
| Convert semitones to frequency ratio. More...
|
|
constexpr float | ame::freqToPeriod (const float freq) noexcept |
| Convert frequency to period. More...
|
|
constexpr float | ame::periodToFreq (const float period) noexcept |
| Convert period to frequency. More...
|
|
float | ame::freqToMidi (const float freq, const float A3Freq=440.0f) |
| Convert frequency to MIDI note number. More...
|
|
float | ame::midiToFreq (const float midiNote, const float A3Freq=440.0f) |
| Convert MIDI note number to frequency. More...
|
|
std::pair< float, float > | ame::cartopol (const float real, const float imag) |
| 直交座標→極座標変換. More...
|
|
std::pair< float, float > | ame::poltocar (const float amplitude, const float angle) |
| 極座表→直交座長変換. More...
|
|
constexpr float | ame::bpmToMs (float bpm) |
| Convert BPM to ms. More...
|
|
constexpr float | ame::msToBpm (float ms) |
| Convert ms to BPM. More...
|
|
constexpr float | ame::decibelsToGain (const float dB) noexcept |
| Convert a dBFS value to to its equivalent gain level. More...
|
|
constexpr float | ame::gainToDecibels (const float gain) noexcept |
| Convert a gain level into a dBFS value. More...
|
|
template<std::floating_point FloatType> |
constexpr FloatType | ame::deg2rad (FloatType degree) noexcept |
| Degree to Radians. More...
|
|
template<std::floating_point FloatType> |
constexpr FloatType | ame::rad2deg (FloatType radian) noexcept |
| Radian to Degree. More...
|
|
Audio friendly conversion functions.
- Author
- Akiyuki Okayasu (akiyu.nosp@m.ki.o.nosp@m.kayas.nosp@m.u@gm.nosp@m.ail.c.nosp@m.om)
- Copyright
- Copyright (c) 2021 - Akiyuki Okayasu
AME is released under the MIT license.