Skip to content

Commit 0d6943e

Browse files
authored
Update README.md
1 parent 3f265e1 commit 0d6943e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ will create a instance named `ipMIDI2` and is connected to port 21930.
3939
```cpp
4040
#include <ipMIDI.h>
4141
...
42-
typedef IPMIDI_NAMESPACE::ipMidiTransport<Type> __imt; \
43-
__imt ipMIDI3(21930); \
44-
MIDI_NAMESPACE::MidiInterface<__imt> MIDI3((__imt &)ipMIDI3);
42+
IPMIDI_NAMESPACE::ipMidiTransport<Type> ipMIDI(Port); \
43+
MIDI_NAMESPACE::MidiInterface<IPMIDI_NAMESPACE::ipMidiTransport<Type>> Name((IPMIDI_NAMESPACE::ipMidiTransport<Type> &)ipMIDI);
4544
```
4645
will create a instance named `ipMIDI3` (and underlaying MIDI object `MIDI3`) and is by default connected to port 21930.
4746

0 commit comments

Comments
 (0)