---
title: Encode MIDI Message
sidebar:
  label: Encode
  order: 2
---
import SchemaInfo from '../../../../../components/SchemaInfo.astro';

This processor will encode a MIDI message into an array of bytes. This processor will return an error if the message being processed is not a MIDI message.

<SchemaInfo type="processor" id="midi.message.encode"/>

### Example

```yaml
- type: midi.message.encode
```
