updated namespaces

This commit is contained in:
Christopher Herb
2023-07-08 05:51:31 +02:00
parent ebae50c2e6
commit eaf72afdab
21 changed files with 21 additions and 23 deletions

View File

@@ -4,7 +4,7 @@
#include "note_event.h"
#include "voice_allocator.h"
namespace trnr::lib::synth {
namespace trnr {
// a generic midi synth base class with sample accurate event handling.
template <typename t_voice>

View File

@@ -1,6 +1,6 @@
#pragma once
namespace trnr::lib::synth {
namespace trnr {
enum note_event_type {
note_on = 0,

View File

@@ -1,7 +1,7 @@
#pragma once
#include <array>
namespace trnr::lib::synth {
namespace trnr {
enum env_state {
idle = 0,

View File

@@ -2,7 +2,7 @@
#include "tx_sineosc.h"
#include "tx_envelope.h"
namespace trnr::lib::synth {
namespace trnr {
class tx_operator {
public:
tx_operator(double samplerate)

View File

@@ -1,7 +1,7 @@
#pragma once
#include <cmath>
namespace trnr::lib::synth {
namespace trnr {
class tx_sineosc {
public:

View File

@@ -4,9 +4,7 @@
#include "tx_operator.h"
#include "../util/audio_math.h"
using namespace trnr::lib::util;
namespace trnr::lib::synth {
namespace trnr {
class tx_voice {
public:

View File

@@ -2,7 +2,7 @@
#include <vector>
#include "note_event.h"
namespace trnr::lib::synth {
namespace trnr {
template <typename t_voice>
class voice_allocator {