TITLE_TEXT = None
TITLE_DURATION = 5
TITLE_CREDITS = "Created with vidi-timeline\nhttps://git.ao2.it/vidi-player.git"
+CANVAS_SIZE = (640, 480)
-def timeline_from_midi(midi_file, video_font_path):
- timeline = vidi.Timeline()
+def timeline_from_midi(midi_file, canvas_size, video_font_path):
+ timeline = vidi.Timeline(canvas_size)
if ADD_TITLE:
title = TITLE_TEXT
video_font_path = os.path.realpath(sys.argv[2])
- timeline = timeline_from_midi(midi_file, video_font_path)
+ timeline = timeline_from_midi(midi_file, CANVAS_SIZE, video_font_path)
if len(sys.argv) > 3:
timeline.save(sys.argv[3])