Mercurial > hg > vamp-plugin-sdk
changeset 269:91821a3ab0b6
* Fix incorrect handling of step & block size in time-domain plugin that
specifies neither
* Add computed_by for features to link back to their transforms
author | cannam |
---|---|
date | Tue, 25 Nov 2008 17:51:12 +0000 |
parents | 6579e441f2fe |
children | 06cfedd040c7 |
files | rdf/vamp.n3 src/vamp-hostsdk/PluginBufferingAdapter.cpp |
diffstat | 2 files changed, 25 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rdf/vamp.n3 Tue Nov 25 13:16:07 2008 +0000 +++ b/rdf/vamp.n3 Tue Nov 25 17:51:12 2008 +0000 @@ -440,7 +440,7 @@ vs:term_status "unstable"; . -# The next 3 properties are included to link in the Audio Features Ontology (not estrictly from the Vamp API). +# The next 3 properties are included to link in the Audio Features Ontology (not strictly from the Vamp API). vamp:computes_event_type a rdf:Property; @@ -726,4 +726,21 @@ #parameter declared above +# The next property is here to link the Audio Features ontology to the +# Transform ontology terms -- an audio feature may use this to +# indicate which transform produced it +vamp:computed_by + a rdf:Property; + a owl:ObjectProperty; + rdfs:label "computed by"; + rdfs:comment """ + Associates an audio feature with the transform that was used to compute it. + """; + rdfs:domain event:Event; + rdfs:domain af:Signal; + rdfs:range vamp:Transform; + vs:term_status "unstable"; + . + +
--- a/src/vamp-hostsdk/PluginBufferingAdapter.cpp Tue Nov 25 13:16:07 2008 +0000 +++ b/src/vamp-hostsdk/PluginBufferingAdapter.cpp Tue Nov 25 17:51:12 2008 +0000 @@ -438,6 +438,11 @@ if (m_blockSize == 0) { if (m_stepSize == 0) { m_blockSize = 1024; + if (freq) { + m_stepSize = m_blockSize / 2; + } else { + m_stepSize = m_blockSize; + } } else if (freq) { m_blockSize = m_stepSize * 2; } else { @@ -475,7 +480,7 @@ bool success = m_plugin->initialise(m_channels, m_stepSize, m_blockSize); - std::cerr << "PluginBufferingAdapter::initialise: success = " << success << std::endl; +// std::cerr << "PluginBufferingAdapter::initialise: success = " << success << std::endl; if (success) { // Re-query outputs; properties such as bin count may have @@ -491,7 +496,7 @@ PluginBufferingAdapter::Impl::getOutputDescriptors() const { if (m_outputs.empty()) { - std::cerr << "PluginBufferingAdapter::getOutputDescriptors: querying anew" << std::endl; +// std::cerr << "PluginBufferingAdapter::getOutputDescriptors: querying anew" << std::endl; m_outputs = m_plugin->getOutputDescriptors(); }