Skip to content

Commit a621d04

Browse files
committed
Add public write method to MidiCommon
1 parent 8438d69 commit a621d04

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/MidiCommon.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ uint8_t MidiCommon :: frequencyToNote(float freq) {
110110
void MidiCommon :: writeData(MidiMessage *msg, int len){
111111
}
112112

113+
void MidiCommon :: write(MidiMessage *msg, int len){
114+
writeData(msg, len);
115+
}
116+
113117

114118

115119
} // namespace

src/MidiCommon.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ class MidiCommon {
125125
// //! Determines the connection status
126126
virtual ConnectionStatus getConnectionStatus() { return connectionStatus; }
127127

128+
//! Public proxy method to writeData
129+
void write(MidiMessage *msg, int len);
130+
128131
protected:
129132
void setConnectionStatus(ConnectionStatus status) {connectionStatus=status; }
130133
void updateTimestamp(MidiMessage *pMsg);

0 commit comments

Comments
 (0)