How to transcribe a small fragment of a performance?

For example, if I want to transcribe only from bar 6 to bar 10, is there a way to do it?

I’ve tried this:

s.fork(part)
s.wait(20)
s.start_transcribe()
s.wait(20)
performance = s.stop_transcribing()

and got “ValueError: Cannot create score from empty performance.”

Also I’ve tried that:

while s.beat() < 20:
s.wait_for_children_to_finish()

but, once started, nothing can stop it until the end of the performance.

The first approach should work, but you need to actually play some notes! I should probably not make it break with an empty performance though.

It works now, thanks!! I forgot to remove a multimeasure rest at the beginning of this part, lol )

1 Like