Skip to content

Commit

Permalink
Merge pull request #11 from T-vK/feat/add-public-write-to-midicommon
Browse files Browse the repository at this point in the history
Add public write method to MidiCommon
  • Loading branch information
pschatzmann authored Dec 2, 2024
2 parents bbfe141 + a621d04 commit 6d91661
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MidiCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ uint8_t MidiCommon :: frequencyToNote(float freq) {
void MidiCommon :: writeData(MidiMessage *msg, int len){
}

void MidiCommon :: write(MidiMessage *msg, int len){
writeData(msg, len);
}



} // namespace
Expand Down
3 changes: 3 additions & 0 deletions src/MidiCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ class MidiCommon {
// //! Determines the connection status
virtual ConnectionStatus getConnectionStatus() { return connectionStatus; }

//! Public proxy method to writeData
void write(MidiMessage *msg, int len);

protected:
void setConnectionStatus(ConnectionStatus status) {connectionStatus=status; }
void updateTimestamp(MidiMessage *pMsg);
Expand Down

0 comments on commit 6d91661

Please sign in to comment.