Skip to content

Commit f965867

Browse files
authored
Update README.md
1 parent 58f7e7d commit f965867

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
@@ -37,9 +37,8 @@ will create a instance named `usbMIDI` and is connected to cable number 4.
3737
```cpp
3838
#include <USB-MIDI.h>
3939
...
40-
typedef USBMIDI_NAMESPACE::usbMidiTransport __umt;
41-
__umt usbMIDI2(5);
42-
MIDI_NAMESPACE::MidiInterface<__umt> MIDI2((__umt&)usbMIDI);
40+
USBMIDI_NAMESPACE::usbMidiTransport usbMIDI(CableNr);
41+
MIDI_NAMESPACE::MidiInterface<USBMIDI_NAMESPACE::usbMidiTransport> MIDI((USBMIDI_NAMESPACE::usbMidiTransport&)usbMIDI);
4342
```
4443
will create a instance named `usbMIDI2` (and underlaying MIDI object `MIDI2`) and is by default connected to cable number 5.
4544

0 commit comments

Comments
 (0)