# MidiEventAttached

`import { MidiEventAttached } from "destack:device/binding";`

MIDI attached event.

```ds title="MidiEventAttached"
export struct MidiEventAttached {
    kind: "attached";
    timestampNs: uint64;
    sequence: uint64;
    port: MidiPort;
}
```

[language/library/src/device/binding/midi.ds:220:229](https://github.com/destack-sh/destack/blob/main/language/library/src/device/binding/midi.ds#L220-L229)

## Members

### `kind: "attached"`

Event discriminator.

### `timestampNs: uint64`

Event timestamp in nanoseconds.

### `sequence: uint64`

Event sequence number.

### `port: MidiPort`

MIDI port.
