changeset 42:1eb2419fc326

* fix to step size for frequency domain plugins * textual updates
author cannam
date Mon, 30 Oct 2006 10:20:21 +0000
parents 31cd55174467
children 3bbe244611bb
files README host/vamp-simple-host.cpp
diffstat 2 files changed, 37 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/README	Wed Oct 11 11:39:02 2006 +0000
+++ b/README	Mon Oct 30 10:20:21 2006 +0000
@@ -126,21 +126,43 @@
 Vamp API itself.
 
 
-Building the SDK
-================
+Building and Installing the SDK and Examples
+============================================
 
-Edit the Makefile to suit your platform according to the comments in
-it.  Type "make".
+To build the SDK, the simple host, and the example plugins, edit the
+Makefile to suit your platform according to the comments in it, then
+run "make".
+
+Installing the example plugins so that they can be found by other Vamp
+hosts depends on your platform:
+
+ * Windows: copy examples/vamp-example-plugins.dll and
+   examples/vamp-example-plugins.cat to C:\Program Files\Vamp Plugins
+
+ * Linux: copy examples/vamp-example-plugins.so and
+   examples/vamp-example-plugins.cat to /usr/local/lib/vamp/
+
+ * OS/X: copy examples/vamp-example-plugins.dylib and
+   examples/vamp-example-plugins.cat to /Library/Audio/Plug-Ins/Vamp
+
+When building a plugin or host of your own using the SDK, you will
+need to include the headers from the vamp-sdk directory.  When linking
+your plugin or host, we suggest statically linking the SDK code in
+preference to distributing it alongside your plugin or host in DLL
+form.  An easy way to do this, if using a project-based build tool
+such as Visual Studio or XCode, is simply to add the .cpp files in the
+vamp-sdk directory to your project.
 
 
 Licensing
 =========
 
 This plugin SDK is freely redistributable under a "new-style BSD"
-licence.  See the file COPYING for more details.  In short, you are
-permitted to reuse the SDK and example plugins in any commercial or
-non-commercial, proprietary or open-source application or plugin under
-almost any conditions provided you retain the original copyright note.
+licence.  See the file COPYING for more details.  In short, you may
+modify and redistribute the SDK and example plugins within any
+commercial or non-commercial, proprietary or open-source plugin or
+application under almost any conditions, with no obligation to provide
+source code, provided you retain the original copyright note.
 
 
 See Also
--- a/host/vamp-simple-host.cpp	Wed Oct 11 11:39:02 2006 +0000
+++ b/host/vamp-simple-host.cpp	Mon Oct 30 10:20:21 2006 +0000
@@ -212,10 +212,11 @@
          << stepSize << endl;
 
     if (blockSize == 0) blockSize = 1024;
-    if (stepSize == 0) stepSize = blockSize;
 
     bool rightBlockSize = true;
+
     if (plugin->getInputDomain() == Vamp::Plugin::FrequencyDomain) {
+
         int p = 1, b = blockSize;
         while (b) {
             p <<= 1;
@@ -228,6 +229,11 @@
             cerr << "Rounding up to " << blockSize << "." << endl;
             rightBlockSize = false;
         }
+        if (stepSize == 0) stepSize = blockSize / 2;
+
+    } else {
+
+        if (stepSize == 0) stepSize = blockSize;
     }
 
     int channels = sfinfo.channels;