# Control to MIDI

> Send control lanes as MIDI controllers: lane 1 to the first CC number, lane 2 to the next, one message per change.

Source: https://docs.tune.toys/nodes/midi.from-control/

Control to MIDI sends control lanes as MIDI controllers: lane 1 to the first CC number, lane 2 to the next, with one message per change.

## What it does

Each input lane becomes a MIDI controller. Lane 1 is sent on First CC, lane 2 on the next number, and so on. A message goes out only when a lane's value changes, on the MIDI channel set by Channel. Lane values from 0 to 1 cover the full 0 to 127 controller range.

## When to use it

Use it to move outside hardware or other software with a Toy's control signals, for example an LFO from [Control LFO](https://docs.tune.toys/nodes/ctl.lfo/) sent to [MIDI out](https://docs.tune.toys/nodes/midi.out/).

## Ports

<!-- ports:start -->

| Port      | Direction | Signal  | Lanes                   |
| --------- | --------- | ------- | ----------------------- |
| `control` | Input     | Control | Inferred from the cable |
| `midi`    | Output    | MIDI    | 16 MIDI channels        |

<!-- ports:end -->

## Parameters

<!-- parameters:start -->

| Parameter | Label    | Range    | Default | Unit | Scale  | Notes                                                                    |
| --------- | -------- | -------- | ------- | ---- | ------ | ------------------------------------------------------------------------ |
| `cc`      | First CC | 0 to 127 | 1       |      | linear | Controller number for lane 1; following lanes use the following numbers. |
| `channel` | Channel  | 1 to 16  | 1       |      | linear | MIDI channel of the messages.                                            |

<!-- parameters:end -->

### First CC (`cc`)

The controller number for lane 1, 0 to 127. Following lanes use the following numbers.

### Channel (`channel`)

The MIDI channel of the messages, 1 to 16.

## Tips

- Smooth steppy sources first with [Smooth](https://docs.tune.toys/nodes/ctl.smooth/) to avoid sending large jumps.
- A bundle running past controller 127 has no controller to carry its extra lanes.

## See also

[MIDI to control](https://docs.tune.toys/nodes/midi.to-control/), [MIDI out](https://docs.tune.toys/nodes/midi.out/), [Control LFO](https://docs.tune.toys/nodes/ctl.lfo/), [MIDI](https://docs.tune.toys/concepts/midi/).
