Skip to content

Instantly share code, notes, and snippets.

@qwzybug
Created April 11, 2009 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qwzybug/93393 to your computer and use it in GitHub Desktop.
Save qwzybug/93393 to your computer and use it in GitHub Desktop.
#include <iostream>
void handle_note_off(void * channel, void * note, void * velocity);
class RadMidi {
public:
void handleNoteOff(unsigned int channel, unsigned int note, unsigned int velocity)
{
handle_note_off(&channel, &note, &velocity);
}
};
int main() {
RadMidi foo = RadMidi();
foo.handleNoteOff(1, 2, 3);
return 0;
}
void handle_note_off(void * channel, void * note, void * velocity) {
std::cout << "Test!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment