Browse Source

Move everything in namespace Heck::OSP

master
heck 8 months ago
parent
commit
35ee7364a4
  1. 2
      src/instr_bd2.cc
  2. 2
      src/instr_bd2.hh
  3. 2
      src/instr_fm.cc
  4. 2
      src/instr_fm.hh
  5. 2
      src/instr_grainlet.cc
  6. 2
      src/instr_grainlet.hh
  7. 2
      src/instr_hihat.cc
  8. 2
      src/instr_hihat.hh
  9. 2
      src/instr_interface.hh
  10. 2
      src/instr_kick.cc
  11. 2
      src/instr_kick.hh
  12. 2
      src/instr_noise.cc
  13. 2
      src/instr_noise.hh
  14. 2
      src/instr_zosc.cc
  15. 2
      src/instr_zosc.hh
  16. 2
      src/main_osp.hh
  17. 2
      src/midiclock.cc
  18. 2
      src/midiclock.hh
  19. 2
      src/sequencer.cc
  20. 2
      src/sequencer.hh
  21. 2
      src/track.hh
  22. 2
      src/types.hh
  23. 4
      src/utils.cc
  24. 10
      src/utils.hh

2
src/instr_bd2.cc

@ -2,7 +2,7 @@
#include "daisysp.h" #include "daisysp.h"
#include "utils.hh" #include "utils.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
BD2::BD2() BD2::BD2()

2
src/instr_bd2.hh

@ -3,7 +3,7 @@
#include "instr_interface.hh" #include "instr_interface.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class BD2 : public AbstractInstrument { class BD2 : public AbstractInstrument {

2
src/instr_fm.cc

@ -2,7 +2,7 @@
#include "daisysp.h" #include "daisysp.h"
#include "utils.hh" #include "utils.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
FM::FM() FM::FM()

2
src/instr_fm.hh

@ -3,7 +3,7 @@
#include "instr_interface.hh" #include "instr_interface.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class FM : public AbstractInstrument { class FM : public AbstractInstrument {

2
src/instr_grainlet.cc

@ -2,7 +2,7 @@
#include "daisysp.h" #include "daisysp.h"
#include "utils.hh" #include "utils.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
Grainlet::Grainlet() Grainlet::Grainlet()

2
src/instr_grainlet.hh

@ -3,7 +3,7 @@
#include "instr_interface.hh" #include "instr_interface.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class Grainlet : public AbstractInstrument { class Grainlet : public AbstractInstrument {

2
src/instr_hihat.cc

@ -2,7 +2,7 @@
#include "daisysp.h" #include "daisysp.h"
#include "utils.hh" #include "utils.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
HiHat::HiHat() HiHat::HiHat()

2
src/instr_hihat.hh

@ -3,7 +3,7 @@
#include "instr_interface.hh" #include "instr_interface.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class HiHat : public AbstractInstrument { class HiHat : public AbstractInstrument {

2
src/instr_interface.hh

@ -3,7 +3,7 @@
#include "main_osp.hh" #include "main_osp.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class AbstractInstrument { class AbstractInstrument {
public: public:

2
src/instr_kick.cc

@ -2,7 +2,7 @@
#include "daisysp.h" #include "daisysp.h"
#include "utils.hh" #include "utils.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
Kick::Kick() Kick::Kick()

2
src/instr_kick.hh

@ -3,7 +3,7 @@
#include "instr_interface.hh" #include "instr_interface.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class Kick : public AbstractInstrument { class Kick : public AbstractInstrument {

2
src/instr_noise.cc

@ -1,7 +1,7 @@
#include "instr_noise.hh" #include "instr_noise.hh"
#include "daisysp.h" #include "daisysp.h"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
Noise::Noise() { Noise::Noise() {

2
src/instr_noise.hh

@ -3,7 +3,7 @@
#include "instr_interface.hh" #include "instr_interface.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class Noise : public AbstractInstrument { class Noise : public AbstractInstrument {

2
src/instr_zosc.cc

@ -2,7 +2,7 @@
#include "daisysp.h" #include "daisysp.h"
#include "utils.hh" #include "utils.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
ZOsc::ZOsc() ZOsc::ZOsc()

2
src/instr_zosc.hh

@ -3,7 +3,7 @@
#include "instr_interface.hh" #include "instr_interface.hh"
namespace Heck { namespace Heck::OSP {
namespace Instrument { namespace Instrument {
class ZOsc : public AbstractInstrument { class ZOsc : public AbstractInstrument {

2
src/main_osp.hh

@ -6,7 +6,7 @@
#include "daisysp.h" #include "daisysp.h"
#include "types.hh" #include "types.hh"
namespace Heck { namespace Heck::OSP {
namespace Constants { namespace Constants {
namespace Hardware { namespace Hardware {
constexpr int PIN_BUTTON_RECORD = 27; constexpr int PIN_BUTTON_RECORD = 27;

2
src/midiclock.cc

@ -1,7 +1,7 @@
#include "midiclock.hh" #include "midiclock.hh"
#include <cmath> #include <cmath>
namespace Heck { namespace Heck::OSP {
void MidiClock::tick_advance() void MidiClock::tick_advance()
{ {
if (enabled) { if (enabled) {

2
src/midiclock.hh

@ -1,7 +1,7 @@
#ifndef HECK_OSP_MIDICLOCK_HH #ifndef HECK_OSP_MIDICLOCK_HH
#define HECK_OSP_MIDICLOCK_HH #define HECK_OSP_MIDICLOCK_HH
namespace Heck { namespace Heck::OSP {
struct MidiClock { struct MidiClock {
public: public:
void tick_advance(); void tick_advance();

2
src/sequencer.cc

@ -1,6 +1,6 @@
#include "sequencer.hh" #include "sequencer.hh"
namespace Heck { namespace Heck::OSP {
Sequencer::Sequencer() Sequencer::Sequencer()
{ {
clear_sequence(); clear_sequence();

2
src/sequencer.hh

@ -6,7 +6,7 @@
namespace ld = daisy; namespace ld = daisy;
namespace Heck { namespace Heck::OSP {
struct Sequencer { struct Sequencer {
// its a MIDI CC step sequencer // its a MIDI CC step sequencer
constexpr static int MIDI_MAX = 127; constexpr static int MIDI_MAX = 127;

2
src/track.hh

@ -6,7 +6,7 @@
#include "utils.hh" #include "utils.hh"
#include "main_osp.hh" #include "main_osp.hh"
namespace Heck { namespace Heck::OSP {
struct Track { struct Track {
public: public:
void init(Instrument::AbstractInstrument& instr) void init(Instrument::AbstractInstrument& instr)

2
src/types.hh

@ -5,7 +5,7 @@
#include "daisy_seed.h" #include "daisy_seed.h"
#include "daisysp.h" #include "daisysp.h"
namespace Heck { namespace Heck::OSP {
// fundamental types // fundamental types
using u8 = uint8_t; using u8 = uint8_t;

4
src/utils.cc

@ -1,6 +1,6 @@
#include "utils.hh" #include "utils.hh"
namespace Heck { namespace Heck::OSP {
void GetMidiTypeAsString(const ld::MidiEvent& msg, char* str) void GetMidiTypeAsString(const ld::MidiEvent& msg, char* str)
{ {
@ -93,7 +93,7 @@ namespace Heck {
} }
} // namespace Heck } // namespace Heck
namespace Heck { namespace Heck::OSP {
void SWTimer::set_period(u32 time_units) void SWTimer::set_period(u32 time_units)
{ {
time_period_ = time_units; time_period_ = time_units;

10
src/utils.hh

@ -1,10 +1,10 @@
#ifndef HECK_DAISY_UTILS_HH #ifndef HECK_OSP_UTILS_HH
#define HECK_DAISY_UTILS_HH #define HECK_OSP_UTILS_HH
#include "daisy_seed.h" #include "daisy_seed.h"
#include "types.hh" #include "types.hh"
namespace Heck { namespace Heck::OSP {
void GetMidiTypeAsString(const ld::MidiEvent& msg, char* str); void GetMidiTypeAsString(const ld::MidiEvent& msg, char* str);
void GetMidiRTTypeAsString(const ld::MidiEvent& msg, char* str); void GetMidiRTTypeAsString(const ld::MidiEvent& msg, char* str);
@ -13,7 +13,7 @@ namespace Heck {
} // namespace Heck } // namespace Heck
namespace Heck { namespace Heck::OSP {
class SWTimer { class SWTimer {
public: public:
using Callback = std::function<void(u32 time)>; using Callback = std::function<void(u32 time)>;
@ -29,7 +29,7 @@ namespace Heck {
}; };
} // namespace Heck } // namespace Heck
namespace Heck { namespace Heck::OSP {
template<typename T> class Observer { template<typename T> class Observer {
public: public:

Loading…
Cancel
Save