// Calculate the modulation-index as a floating point number for interpolation
// Calculate the modulation-index as a floating point number for interpolation
mod_index=*mp*(1-MODULATION_MAX_FACTOR)*_delay_length;// "(1 - MODULATION_MAX_FACTOR) * _delay_length" means: maximum bytes of modulation allowed by given delay length
//mod_index = *mp * (1 - MODULATION_MAX_FACTOR) * _delay_length; // "(1 - MODULATION_MAX_FACTOR) * _delay_length" means: maximum bytes of modulation allowed by given delay length
mod_index=filteredOutput*(1-MODULATION_MAX_FACTOR)*_delay_length;// "(1 - MODULATION_MAX_FACTOR) * _delay_length" means: maximum bytes of modulation allowed by given delay length
mod_fraction=modff(mod_index,&mod_number);// split float of mod_index into integer (= mod_number) and fraction part
mod_fraction=modff(mod_index,&mod_number);// split float of mod_index into integer (= mod_number) and fraction part
// calculate modulation index into circular buffer
// calculate modulation index into circular buffer