-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/IMidiChannel.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
namespace HyperSonicDrivers::drivers::midi | ||
{ | ||
/** | ||
* Interface for MIDI operation to a specific MIDI Channel | ||
**/ | ||
class IMidiChannel | ||
{ | ||
public: | ||
IMidiChannel() = default; | ||
virtual ~IMidiChannel() = default; | ||
|
||
// MIDI Events | ||
virtual void noteOff(const uint8_t note) noexcept = 0; | ||
virtual void noteOn(const uint8_t note, const uint8_t vol) noexcept = 0; | ||
virtual void controller(const uint8_t ctrl, uint8_t value) noexcept = 0; | ||
virtual void programChange(const uint8_t program) noexcept = 0; | ||
virtual void pitchBend(const uint16_t bend) noexcept = 0; | ||
|
||
// MIDI Controller Events | ||
virtual void ctrl_modulationWheel(const uint8_t value) const noexcept = 0; | ||
virtual void ctrl_volume(const uint8_t value) const noexcept = 0; | ||
virtual void ctrl_panPosition(uint8_t value) const noexcept = 0; | ||
virtual void ctrl_sustain(uint8_t value) const noexcept = 0; | ||
}; | ||
} |
18 changes: 18 additions & 0 deletions
18
sdl2-hyper-sonic-drivers/src/HyperSonicDrivers/drivers/midi/IMidiChannelVoice.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
namespace HyperSonicDrivers::drivers::midi | ||
{ | ||
/** | ||
* Interface for Midi Channel Voice message | ||
**/ | ||
class IMidiChannelVoice | ||
{ | ||
public: | ||
IMidiChannelVoice() = default; | ||
virtual ~IMidiChannelVoice() = default; | ||
|
||
|
||
|
||
}; | ||
|
||
} |