Skip to content

MACRO for creation an AppleMIDI instance

lathoub edited this page Feb 13, 2021 · 20 revisions
#define APPLEMIDI_CREATE_INSTANCE(Type, Name, SessionName, Port)
1)    APPLEMIDI_NAMESPACE::AppleMIDISession<Type> Apple##Name(SessionName, Port);
2)    MIDI_NAMESPACE::MidiInterface< 
3)          APPLEMIDI_NAMESPACE::AppleMIDISession<Type>, 
4)          APPLEMIDI_NAMESPACE::AppleMIDISettings>
5)       Name((APPLEMIDI_NAMESPACE::AppleMIDISession<Type>&)Apple##Name);
Clone this wiki locally