Export_xml without playing notes

I would like to get direct xml result rather than waiting until playback has finished. How could I achieve this?

1 Like

Call s.fast_forward_in_beats(float("inf")) on your Session object.

In general, fast_forward_in_beats and fast_forward_in_time are good for getting to different moments in the score. :slight_smile:

thanks a lot, that works!

Although -fast_forward_- do the job, fluidsynth is being initialized at each shot, which create problems when generating dozens of xml files programmatically.
Is it possible to turn off fluidsynth

Try s.new_silent_part — it doesn’t do any playback, but it can be transcribed.

1 Like