Mercurial > hg > vampy-host
diff vamp/collect.py @ 140:1a494598ee2b
Support step size, block size, process timestamp method kwargs
author | Chris Cannam |
---|---|
date | Wed, 08 Jul 2015 12:46:04 +0100 |
parents | b8fe675f9c3f |
children | 79b050ca2fc2 |
line wrap: on
line diff
--- a/vamp/collect.py Wed Jul 08 11:37:06 2015 +0100 +++ b/vamp/collect.py Wed Jul 08 12:46:04 2015 +0100 @@ -108,7 +108,7 @@ return rv -def collect(data, sample_rate, plugin_key, output = "", parameters = {}): +def collect(data, sample_rate, plugin_key, output = "", parameters = {}, **kwargs): """Process audio data with a Vamp plugin, and make the results from a single plugin output available as a single structure. @@ -158,7 +158,7 @@ """ - plugin, step_size, block_size = vamp.load.load_and_configure(data, sample_rate, plugin_key, parameters) + plugin, step_size, block_size = vamp.load.load_and_configure(data, sample_rate, plugin_key, parameters, **kwargs) if output == "": output_desc = plugin.get_output(0)