Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Hitmuri

Pages: [1]
1
Host Development / Hosting the vamp-example-plugins
« on: June 14, 2009, 13:06:11 »
Hi,

i don't know if it is the right section but i have a problem using the vamp-example power spectrum plugin in an application that i am writing.
i load it and use it that way (it's temporary code ;) )  :

Code: [Select]
        loader = PluginLoader::getInstance();
        key = loader->composePluginKey(pluginName, pluginID);
        plugin = loader->loadPlugin(key, sampleRate, PluginLoader::ADAPT_ALL_SAFE);
        outputs = plugin->getOutputDescriptors();
        RealTime rt;
        RealTime adjustment = RealTime::zeroTime;
        if(!plugin->initialise(2, 64, 128))
        {
                cout<<"Error initializing analysis"<<endl;
        }

Code: [Select]
        RealTime rt;
        Plugin::FeatureSet features=plugin->process((float**)(aae->getBuffers()),rt);
        for (unsigned int j = 0; j < features[0][0].values.size(); ++j)
            //here i get the values

this way i get the values of the spectrum, but the first two values keep increasing over time, and don't seem to be related to the spectrum.

Am i doing something wrong ?

thanks

florent

2
Host Development / Real-time host
« on: April 17, 2008, 15:18:04 »
Hi,

i'd like to build a host for vamp plugins which would take audio input from jack and which would output analysis results in OpenSoundControl or MIDI. Actually the question is : is there be a problem using vamp with "real-time" audio inputs.

Thanks

Florent

Pages: [1]