[][src]Function fluidlite_sys::fluid_synth_create_key_tuning

pub unsafe extern "C" fn fluid_synth_create_key_tuning(
    synth: *mut fluid_synth_t,
    tuning_bank: c_int,
    tuning_prog: c_int,
    name: *const c_char,
    pitch: *mut f64
) -> c_int

Create a new key-based tuning with given name, number, and pitches. The array 'pitches' should have length 128 and contains the pitch in cents of every key in cents. However, if 'pitches' is NULL, a new tuning is created with the well-tempered scale.

\param synth The synthesizer object \param tuning_bank The tuning bank number [0-127] \param tuning_prog The tuning program number [0-127] \param name The name of the tuning \param pitch The array of pitch values. The array length has to be 128.