- snprintf (buf, sizeof (buf), "%u", chn);
- chn_node->add_property ("id", buf);
+ // implicitly cast these to bool
+ chn_node->set_property (X_("cut"), (*x)->cut != GAIN_COEFF_UNITY);
+ chn_node->set_property (X_("invert"), (*x)->polarity != GAIN_COEFF_UNITY);
+ chn_node->set_property (X_("dim"), (*x)->dim == true);
+ chn_node->set_property (X_("solo"), (*x)->soloed == true);