Yes there is a way but it has disadvantages.
Often the result is awkward jumps. I indicate changed notes by note head style and colour so that it is easier to edit the results. If you are still interested let me know and I will send you the scheme procedure and an example. I allow for different instruments having different ranges.
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user