Changing an existing barline's
.barlineType will work as expected, except START_REPEAT
Applying START_REPEAT changes the next barline instead, see parkingb's comment. The reason: to allow changing END_REPEAT , see source code, workaround: apply START_REPEAT to the previous barline will change current barline.
Enum not exposed, workaround see jeetee's comment