- int autogrouptype = current->autos->autogrouptype;
- value = percentage_to_value(percentage, 0, current, autogrouptype);
- if(value != current->get_control_in_value())
- {
- result = 1;
- // note: (position,value) need not be at the location of the ctrl point,
- // but could be somewhere in between on the curve (or even outward or
- // on the opposit side). We set the new control point such as
- // to point the curve through (position,value)
- current->set_control_in_value(
- value * levered_position(position - current->position,
- current->get_control_in_position()));
- synchronize_autos(0, current->autos->track, current, 0);
- show_message(current, 1,", %.2f", current->get_control_in_value());
- }
+ result = 1;
+ // note: (position,value) need not be at the location of the ctrl point,
+ // but could be somewhere in between on the curve (or even outward or
+ // on the opposit side). We set the new control point such as
+ // to point the curve through (position,value)
+ current->set_control_in_value(
+ value * levered_position(position - current->position,
+ current->get_control_in_position()));
+ synchronize_autos(0, current->autos->track, current, 0);
+ show_message(current, 1,", %.2f", current->get_control_in_value());