python/lib/gen_pyobject.py: add sampler
authorPaul Brossier <piem@piem.org>
Fri, 22 Mar 2013 17:21:06 +0000 (12:21 -0500)
committerPaul Brossier <piem@piem.org>
Fri, 22 Mar 2013 17:21:06 +0000 (12:21 -0500)
python/lib/gen_pyobject.py

index bb8b4f23bdb7036f2877b5101f7efaceb7f7fb4c..61bf59ade93467759eb164a0020e5cb8f0ea6003 100644 (file)
@@ -21,6 +21,7 @@ maintaining this bizarre file.
 param_numbers = {
   'source': [0, 2],
   'sink':   [2, 0],
+  'sampler': [1, 1],
 }
 
 # TODO
@@ -100,6 +101,7 @@ defaultsizes = {
     'tempo':        ['1'],
     'peakpicker':   ['1'],
     'source':       ['self->hop_size', '1'],
+    'sampler':      ['self->hop_size'],
 }
 
 # default value for variables