Add a MIDI behavior
You apply the MIDI behavior in the same way as all other Parameter behaviors. In the following examples, the MIDI behavior is used to adjust an object’s opacity and rotation.
Note: This behavior can only be used if you have a MIDI device correctly connected to your computer.
Use the MIDI behavior to adjust an object’s opacity
Select an object, then locate the Opacity parameter in the Properties Inspector.
-
Control-click the parameter, then choose Add Parameter Behavior > MIDI from the shortcut menu.
The MIDI parameters are displayed in the Behaviors Inspector. By default, Control Type is set to Learning.
Like all other Parameter behaviors, the Apply To field displays the parameter to which the behavior is applied.
-
On your MIDI device, tweak the control (such as the knob, dial, or key) you want to use as the controller for the Opacity parameter.
The identification number of the MIDI control is displayed in the ID field. The value range of the control is 0 to 127, the default MIDI control value.
Because an object’s opacity can only fall between 0 (completely transparent) to 100 (completely opaque), the default MIDI values are sufficient to adjust the parameter.
Note: When in Learning mode, the first control adjusted on the MIDI device is set as the control. To reset the selected controller, choose Learning from the Control Type pop-up menu, then adjust another control on the MIDI device.
Use the MIDI behavior to adjust an object’s rotation
Select an object, then locate the Rotation parameter in the Properties Inspector.
Control-click the parameter, then choose Add Parameter Behavior > MIDI from the shortcut menu.
-
On your MIDI device, tweak the control (knob, dial, key, and so on) you want to use as the controller for the Rotation parameter.
As mentioned above, the default Value range is 0 to 1. Because the Rotation value of an object can be much larger, you can use the Scale parameter to multiply the Value range.
To give the control more sensitivity, increase the Scale value.