def commands(self):
return [NextCommand(), PreviousCommand(), JumpCommand(),
+ IndexCommand(), CurveListCommand(),
SaveCommand(), LoadCommand(),
AddCommand(), AddGlobCommand(),
RemoveCommand(), FilterCommand(), NoteFilterCommand()]
def _run(self, hooke, inqueue, outqueue, params):
outqueue.put(params['playlist']._index)
+class CurveListCommand (Command):
+ """Get the curves in a playlist.
+ """
+ def __init__(self):
+ super(CurveListCommand, self).__init__(
+ name='playlist curves',
+ arguments=[
+ PlaylistArgument,
+ ],
+ help=self.__doc__)
+
+ def _run(self, hooke, inqueue, outqueue, params):
+ outqueue.put([c for c in params['playlist']])
+
class SaveCommand (Command):
"""Save a playlist.
"""