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 - haze

Pages: [1]
1
Plugin Development / coding...
« on: March 23, 2009, 17:50:45 »
hi,

can you please look at my codes in the process call, am i doing the right coding.

VocalRangeAnalyzerPlugin::FeatureSet
VocalRangeAnalyzerPlugin::process(const float *const *inputBuffers,
                                 Vamp::RealTime timestamp)
{
    FeatureSet returnFeatures;

    if (m_stepSize == 0) {
        std::cerr << "VocalRangeAnalyzerPlugin::process:  Plugin not initialised" << std::endl;
        return returnFeatures;
    }

    for (size_t i = 0; i < m_stepSize; ++i) {
        for (size_t j = 0; j < m_channelCount; ++j) {
            fvec_write_sample(m_ibuf, inputBuffers[j], j, i);
        }
    }

      calculate();

      if (minFreq >= 80 && maxFreq <= 310){
         feature.label = "bass";}

      else if(minFreq >= 100 && maxFreq <= 440){
         feature.label ="baritone";}
         
      else if(minFreq >=130 && maxFreq <= 500){
         feature.label = "tenor";}

      else if(minFreq >= 160 && maxFreq <= 650){
         feature.label = "alto";}

      else if(minFreq >= 210 && maxFreq <= 900){
         feature.label = "mezzo-soprano";}

      else if(minFreq >= 270 && maxFreq <= 1100){
         feature.label = "soprano";}

   
   Feature feature;
    feature.hasTimestamp = true;
    feature.timestamp = m_currentOnset +
            RealTime::frame2RealTime(i * m_stepSize, m_inputSampleRate);
   feature.hasDuration = true;
    feature.duration = offTime - m_currentOnset;
    feature.values.push_back(freq);

    returnFeatures[0].push_back(feature);
    return returnFeatures;
}

void
VocalRangeAnalyzerPlugin::calculate()
{
   float freq = aubio_pitchdetection(m_pitchdet, m_ibuf);
   

   for(int i=0; i<m_stepSize; i++)
   {
      if(freq < minFreq){
         minFreq = freq;
      }
      else
         if(freq > maxFreq){
            maxFreq = freq;
         }

   isFirstTime(false);
   }
}
//consider all has been initialized

do i miss something, there's no error, i got a dll file but then it is not running in sonic v.

please help. thanks.

hazel

2
Plugin Development / dll not recognize
« on: March 13, 2009, 17:56:08 »
Hi,

I got to build vamp-example plugins including my own plugin but the .dll file of my project is not recognized by sonic Visualiser.
Whenever I open Sonic V, it encounters a problem and need to be close.


Thanks


Hazel

3
hi.

i am making a vamp plugin and uses the plugin wrapper of aubio (pitchdetection).

i already linked the static library of vamp-aubio but i got this error when linking.

may i ask what is the runtime library used in building vamp-aubio static library coz i am encountering unresolved symbol errors. one of the possible cause is the compatibility of the runtime library use.

this is the error--

>vamp-aubio.lib(vamp-aubio.obj) : error LNK2019: unresolved external symbol __imp____lc_codepage referenced in function _VAMP-AUBIO_DllMain@12


hope anybody could help me with this problem. please..

thanks...

hazel

4
Plugin Development / DSP Application for Vamp
« on: January 29, 2009, 17:35:56 »
Hi

Would it be possible to add a DSP Application for Vamp Plugin? Specifically filtering of sound signals.

If so, could anybody here help me to do it. This is a part of my undergrad study which I should filter first the sound signals after analyzing the voice ranges.

Thank you.

Hazel

5
Plugin Development / Coding in Vamp and Compiling it..
« on: January 19, 2009, 15:36:14 »
Good day!

I already started coding my project, and used PercusionOnsetDetector  codes and modify it. I will be using audio-signal processing for the plugin.

I would like to ask for help if anybody here got some idea on how to code the actual process of my plugin. To recall, I will have a pre-recorded track and the plugin will get the range of frequencies of the high and low notes. By that, it will output the vocal range which is soprano, bass, etc.

And, what compiler should I use to compile the codes in Vamp SDK?. I can't compile/build it using MS Visual C++ 2005 Express Edition. Do i have to compile something first before i could compile my own codes?..

I've downloaded all that has to be downloaded as stated in the Vamp website.

Thanks ahead.

Pages: [1]