I found this in ui.cc
case SWITCH_T_RANGE:
{
if (mode_ >= UI_MODE_CALIBRATION_1 && mode_ <= UI_MODE_CALIBRATION_4) {
NextCalibrationStep();
} else {
state->t_range = (state->t_range + 1) % 3;
}
SaveState();
}
break;
and this:
void Ui::UpdateHiddenParameters() {
// Check if some pots have been moved.
for (int i = 0; i < ADC_CHANNEL_LAST; ++i) {
float new_value = cv_reader_->channel(i).unscaled_pot();
float old_value = pot_value_[i];
bool changed = fabs(new_value - old_value) >= 0.008f;
if (changed) {
pot_value_[i] = new_value;
AlternateKnobMapping mapping = alternate_knob_mappings_[i];
if (switches_.pressed(mapping.unlock_switch)) {
if (mapping.unlock_switch == SWITCH_T_RANGE && new_value < 0.1f) {
new_value = 0.0f;
}
*mapping.destination = static_cast<uint8_t>(new_value * 255.0f);
cv_reader_->mutable_channel(i)->LockPot();
// The next time a switch is released, we unlock the pots.
setting_modification_flag_ = true;
}
}
}
}
but I don’t think it’s relevant.
found a typo in a comment though:
/marbles/ramp/slave_ramp.h
27 // A ramp that follows a mater ramp through division/multiplication.