The Alternative Csound Reference Manual
Previous |  | Next

# initc14

initc14 -- Initializes the controllers used to create a 14-bit MIDI value.

## Description

Initializes the controllers used to create a 14-bit MIDI value.

## Syntax

initc14 ichan, ictlno1, ictlno2, ivalue

## Initialization

ichan -- MIDI channel (1-16)

ictlno1 -- most significant byte controller number (0-127)

ictlno2 -- least significant byte controller number (0-127)

ivalue -- floating point value (must be within 0 to 1)

## Performance

initc14 can be used together with both midic14 and ctrl14 opcodes for initializing the first controller's value. ivalue argument must be set with a number within 0 to 1. An error occurs if it is not. Use the following formula to set ivalue according with midic14 and ctrl14 min and max range:

ivalue = (initial_value - min) / (max - min)

## See Also

ctrl7, ctrl14, ctrl21, ctrlinit, initc7, initc21, midic7, midic14, midic21

## Credits

Author: Gabriel Maldonado
Italy

New in Csound version 3.47

Thanks goes to Rasmus Ekman for pointing out the correct MIDI channel and controller number ranges.

Previous | Home | Next
init | Up | initc21