You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
#ifndef HECK_DAISY_GLOBALS_HH
|
|
#define HECK_DAISY_GLOBALS_HH
|
|
|
|
#include <cstdint>
|
|
#include "daisy_seed.h"
|
|
#include "daisysp.h"
|
|
|
|
namespace Heck {
|
|
namespace ld = daisy;
|
|
namespace dsp = daisysp;
|
|
|
|
namespace Constants {
|
|
namespace Hardware {
|
|
constexpr int PIN_BUTTON_RECORD = 28;
|
|
|
|
}
|
|
|
|
constexpr int BUFFERSIZE = 4;
|
|
constexpr int SAMPLERATE = 48000;
|
|
constexpr int TRACK_COUNT = 4;
|
|
|
|
namespace MIDI_Mapping {
|
|
constexpr int TRACK_PITCH = 70;
|
|
constexpr int TRACK_DECAY = 71;
|
|
constexpr int TRACK_PARAM1 = 72;
|
|
constexpr int TRACK_PARAM2 = 73;
|
|
constexpr int TRACK_FILTER = 74;
|
|
constexpr int TRACK_DRIVE = 75;
|
|
constexpr int TRACK_VOLUME = 76;
|
|
constexpr int TRACK_MODE1 = 78;
|
|
constexpr int TRACK_MODE2 = 79;
|
|
constexpr int TRACK_FILTERMODE = 80;
|
|
} // namespace MIDI_Mapping
|
|
|
|
namespace Developer {
|
|
constexpr bool BOOT_WAIT_FOR_LOG = false;
|
|
}
|
|
} // namespace Constants
|
|
|
|
// Types
|
|
using u8 = uint8_t;
|
|
using u16 = uint16_t;
|
|
using u32 = uint32_t;
|
|
using u64 = uint64_t;
|
|
|
|
using i8 = int8_t;
|
|
using i16 = int16_t;
|
|
using i32 = int32_t;
|
|
using i64 = int64_t;
|
|
|
|
using f32 = float;
|
|
using f64 = double;
|
|
|
|
//Hardware
|
|
extern ld::DaisySeed hw;
|
|
extern ld::Switch but_rec;
|
|
} // namespace Heck
|
|
|
|
|
|
#endif
|