Multiple people have expressed interest in exporting animated scores to video files. This would greatly increase the portability of animated scores, for instance allowing them to be shared as simple online videos. Currently the main way to do this is to hackily run a screen recorder over the interactive viewport, or hack together a frame-image exporter and stitch the result together separately. We should support this out of the box.
I think probably the best solution would be something like:
- add a new method
neoscore.add_export_frame which starts video export if needed and otherwise adds a new frame. ideally this would have some mechanism for zooming, rotating, and panning the 'camera' as well, or otherwise it should leave the possibility of that extension later.
- add a new method
neoscore.export_video
This would require adding a dependency for frame-by-frame video encoding, which could be a large dependency. Maybe make it optional since most users don't need this?
Multiple people have expressed interest in exporting animated scores to video files. This would greatly increase the portability of animated scores, for instance allowing them to be shared as simple online videos. Currently the main way to do this is to hackily run a screen recorder over the interactive viewport, or hack together a frame-image exporter and stitch the result together separately. We should support this out of the box.
I think probably the best solution would be something like:
neoscore.add_export_framewhich starts video export if needed and otherwise adds a new frame. ideally this would have some mechanism for zooming, rotating, and panning the 'camera' as well, or otherwise it should leave the possibility of that extension later.neoscore.export_videoThis would require adding a dependency for frame-by-frame video encoding, which could be a large dependency. Maybe make it optional since most users don't need this?