-# Copyright (C) 2010 W. Trevor King <wking@drexel.edu>
+# Copyright (C) 2010-2012 W. Trevor King <wking@drexel.edu>
#
# This file is part of Hooke.
#
help=self.__doc__, plugin=plugin)
def _run(self, hooke, inqueue, outqueue, params):
- outqueue.put(params['target'].info['note'])
+ outqueue.put(params['target'].info.get('note', None))
class NoteFilterCommand (FilterCommand):
"""
def __init__(self, plugin):
super(NoteFilterCommand, self).__init__(
- plugin, name='note filter playlist')
+ plugin, name='note filter playlist', load_curves=False)
def filter(self, curve, hooke, inqueue, outqueue, params):
return 'note' in curve.info and curve.info['note'] != None