d = timeside.decoder.FileDecoder(source)
a = timeside.analyzer.OnsetDetectionFunction()
-(d | a).run()
+pipe = d | a
+pipe.run()
-print a.results
\ No newline at end of file
+print pipe.results
+
+a.results.to_hdf5('../results/sweep_odf.hdf5')
def __ior__(self, other):
if isinstance(other, Processor):
parents = other.parents
- if parents:
- for parent in parents:
- self |= parent
+ for parent in parents:
+ self |= parent
self.processors.append(other)
elif isinstance(other, ProcessPipe):
self.processors.extend(other.processors)