Mercurial > hg > vampy-host
diff vamp/process.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/process.py Wed Jul 08 11:37:06 2015 +0100 +++ b/vamp/process.py Wed Jul 08 12:46:04 2015 +0100 @@ -59,7 +59,7 @@ yield { o: r } -def process_audio(data, sample_rate, plugin_key, output = "", parameters = {}): +def process_audio(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 generator. @@ -86,7 +86,7 @@ structure, consider using vamp.collect() instead. """ - 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 = plugin.get_output(0)["identifier"] @@ -169,7 +169,7 @@ plugin.unload() -def process_audio_multiple_outputs(data, sample_rate, plugin_key, outputs, parameters = {}): +def process_audio_multiple_outputs(data, sample_rate, plugin_key, outputs, parameters = {}, **kwargs): """Process audio data with a Vamp plugin, and make the results from a set of plugin outputs available as a generator. @@ -193,7 +193,7 @@ array of float values. """ - 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) ff = vamp.frames.frames_from_array(data, step_size, block_size)