The myank filter can be used to extract measures from a full score.

Here is an example of extracting measures 5 to the end of the piece in a Bach chorale.

The myank filter is identical to the Humdrum Extras command-line tool myank. See its documentation for more examples of how to use the myank filter.