Skip to content

Commit

Permalink
wthgcc
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Dec 27, 2024
1 parent f0efe3c commit 6c29315
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_player.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,17 @@ template <size_t voiceCount, bool doLog = false> struct TestPlayer
MonoResponder(TestPlayer &p) : testPlayer(p) {}
void setMIDIPitchBend(int16_t channel, int16_t pb14bit)
{
assert(channel >=0 && channel < 16);
testPlayer.pitchBend[channel] = pb14bit;
}
void setMIDI1CC(int16_t channel, int16_t cc, int8_t val)
{
assert(channel >=0 && channel < 16);
testPlayer.midi1CC[channel][cc] = val;
}
void setMIDIChannelPressure(int16_t channel, int16_t pres)
{
assert(channel >=0 && channel < 16);
testPlayer.channelPressure[channel] = pres;
}
} monoResponder;
Expand Down

0 comments on commit 6c29315

Please sign in to comment.