- def volume_print(self, music = None, value = 100, **kwargs):
- if music is not None:
- return "setting volume of « {} » to {}%".format(music.name, value)
+ def seek_print(self, music = None, value = 0, delta = False, **kwargs):
+ if delta:
+ if music is not None:
+ return "moving music « {} » by {:+d}s".format(music.name, value)
+ else:
+ return "moving all musics by {:+d}s".format(value)
+ else:
+ if music is not None:
+ return "moving music « {} » to position {}s".format(music.name, value)
+ else:
+ return "moving all musics to position {}s".format(value)
+
+ def volume_print(self, music = None, value = 100, delta = False, **kwargs):
+ if delta:
+ if music is not None:
+ return "{:+d}% to volume of « {} »".format(value, music.name)
+ else:
+ return "{:+d}% to volume".format(value)
+ else:
+ if music is not None:
+ return "setting volume of « {} » to {}%".format(music.name, value)
+ else:
+ return "setting volume to {}%".format(value)
+
+ def wait_print(self, duration = 0, music = None, **kwargs):
+ if music is None:
+ return "waiting {}s".format(duration)
+ elif duration == 0:
+ return "waiting the end of « {} »".format(music.name)