Use Non-Frames Version Previous Page Next Page
MIDI Support: Controller Input

initc7, initc14, initc21

            initc7     ichan, ictlno, ivalue
            initc14    ichan, ictlno1, ictlno2, ivalue
            initc21    ichan, ictlno1, ictlno2, ictlno3, ivalue

Description

Initializes MIDI controller ictlno with ivalue

Initialization

ichan - MIDI channel

ictlno - controller number (initc7)

ictlno1 - most significant byte controller number

ictlno2 - in initc14 least significant byte controller number; in initc21 Medium Significant Byte controller number

ictlno3 - least significant byte controller number

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

Performance

initc7, initc14, initc21 can be used together with both midicXX and ctrlXX 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 midicXX and ctrlXX min and max range:

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

Author

Gabriel Maldonado
Italy
New in Csound version 3.47


Use Non-Frames Version Previous Page Next Page
MIDI Support: Controller Input