Browse Source

Extend globals

main
heck 7 months ago
parent
commit
db19e4b847
  1. 16
      src/globals.hh
  2. 2
      src/instr_abstract.hh

16
src/globals.hh

@ -2,6 +2,13 @@
#define HECK_DAISY_GLOBALS_HH #define HECK_DAISY_GLOBALS_HH
#include <cstdint> #include <cstdint>
#include "daisy_seed.h"
#include "daisysp.h"
namespace Heck {
namespace ld = daisy;
namespace dsp = daisysp;
namespace Constants { namespace Constants {
constexpr int BUFFERSIZE = 4; constexpr int BUFFERSIZE = 4;
constexpr int SAMPLERATE = 48000; constexpr int SAMPLERATE = 48000;
@ -15,6 +22,9 @@ namespace Constants {
constexpr int TRACK_FILTER = 74; constexpr int TRACK_FILTER = 74;
constexpr int TRACK_DRIVE = 75; constexpr int TRACK_DRIVE = 75;
constexpr int TRACK_VOLUME = 76; constexpr int TRACK_VOLUME = 76;
constexpr int TRACK_MODE1 = 78;
constexpr int TRACK_MODE2 = 79;
constexpr int TRACK_FILTERMODE = 80;
} // namespace MIDI_Mapping } // namespace MIDI_Mapping
} // namespace Constants } // namespace Constants
@ -31,4 +41,10 @@ using i64 = int64_t;
using f32 = float; using f32 = float;
using f64 = double; using f64 = double;
//Hardware
extern ld::DaisySeed hw;
} // namespace Heck
#endif #endif

2
src/instr_abstract.hh

@ -5,7 +5,7 @@
namespace Heck { namespace Heck {
namespace Instrument { namespace Instrument {
int samplerate = Constants::SAMPLERATE; static int samplerate = Constants::SAMPLERATE;
class AbstractInstrument { class AbstractInstrument {
public: public:

Loading…
Cancel
Save