Show Posts
|
|
Pages: [1] 2
|
|
1
|
Development Topics / Plugin Development / Re: coding...
|
on: August 15, 2009, 03:34:35
|
|
Hi
I tried to debug using Sonic Visualiser. Then prompts "Unhandled exception at 0x0256a966 (vamp-example-plugins.dll) in Sonic Visualiser.exe: 0xC0000005: Access violation reading location 0xcdcdcdd1" and asked to break or continue. I Tried to continue and the stack traces are:
vamp-example-plugins.dll!del_fvec(_fvec_t * s=0xcdcdcdcd) Line 42 + 0x18 bytes C++
vamp-example-plugins.dll!VocalRangeAnalyzerPlugin::~VocalRangeAnalyzerPlugin() Line 77 + 0x15 bytes C++
vamp-example-plugins.dll!VocalRangeAnalyzerPlugin::`scalar deleting destructor'() + 0x2b bytes C++
vamp-example-plugins.dll!_VampPlugin::Vamp::PluginAdapterBase::Impl::getDescriptor() Line 264 + 0x34 bytes C++
vamp-example-plugins.dll!_VampPlugin::Vamp::PluginAdapterBase::getDescriptor() Line 150 C++
vamp-example-plugins.dll!vampGetPluginDescriptor(unsigned int version=2, unsigned int index=0) Line 59 + 0x10 bytes C++
Sonic Visualiser.exe!006aa72b() [Frames below may be incorrect and/or missing, no symbols loaded for Sonic Visualiser.exe] Sonic Visualiser.exe!006ae919() Sonic Visualiser.exe!00590090() Sonic Visualiser.exe!00b490f0() Sonic Visualiser.exe!0126fb22() Sonic Visualiser.exe!00b490f0() Sonic Visualiser.exe!0042d383() msvcrt.dll!77c2c2de() Sonic Visualiser.exe!0158c6be() Sonic Visualiser.exe!0043ec7f() Sonic Visualiser.exe!00423c9b() Sonic Visualiser.exe!00423c9b() Sonic Visualiser.exe!0042c6fd() msvcrt.dll!77c50000() msvcrt.dll!77c50000() msvcrt.dll!77c39d60() Sonic Visualiser.exe!004011c2() Sonic Visualiser.exe!00401253() ntdll.dll!7c90e64e() kernel32.dll!7c816d4c() kernel32.dll!7c816d4f() kernel32.dll!7c8399f3() Sonic Visualiser.exe!0069006c()
Thanks a lot.
Hazel
|
|
|
|
|
2
|
Development Topics / Plugin Development / Re: coding...
|
on: July 15, 2009, 13:55:47
|
|
Hi.
I got this error log, what does it mean?
Faulting application sonic visualiser.exe, version 0.0.0.0, faulting module vamp-example-plugins.dll, version 0.0.0.0, fault address 0x0009a966.
Hazel
|
|
|
|
|
4
|
Development Topics / Plugin Development / Re: coding...
|
on: July 07, 2009, 14:49:38
|
|
Hi.
I've tried to configure the Debug command as you say so but still I get the same result. It still crashes.
Do you mean I have to get the codes of Sonic V. to run in Visual Studio?
I am using ver.2.0 of the SDK libraries and headers.
Thanks a lot.
Hazel
|
|
|
|
|
6
|
Development Topics / Plugin Development / Re: coding...
|
on: June 26, 2009, 14:32:59
|
|
Hi
SV crashes as soon as I start it up (with my dll installed).
const VampPluginDescriptor *vampGetPluginDescriptor(unsigned int version, unsigned int index) { if (version < 1) return 0;
return vocalRangeAnalyzerPlugin.getDescriptor(); return 0; }
--How do I use vamp-simple-host? And what debugger do you suggest?
Thanks
Hazel
|
|
|
|
|
7
|
Development Topics / Plugin Development / Re: coding...
|
on: June 20, 2009, 07:50:45
|
|
Hi.
I'm back. Regarding what I said that the .dll file is not running in SV, whenever I tried to open SV, it crashes down. It does not continue to open.
Where is the problem here? In the codes?
Pls. help. Thanks.
Hazel
|
|
|
|
|
8
|
Development Topics / Plugin Development / Re: coding...
|
on: March 23, 2009, 19:12:48
|
|
Also, how do I remove the example plugins of vamp. I want only my plugin to be built. I tried deleting the examples.cpp files but everytime I build it, there's an error of cannot find files.
Thanks
Hazel
|
|
|
|
|
9
|
Development Topics / 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
|
|
|
|
|
10
|
Development Topics / Plugin Development / Re: dll not recognize
|
on: March 22, 2009, 14:41:19
|
|
I just want to know the concept on the output of QM Key Detector, in which it is not processed per processing block.
Also, do you have any idea on how to get the minimum and maximum frequency of the signal using the aubio pitch detection plugin.
Thanks ahead.
Hazel
|
|
|
|
|
12
|
Development Topics / 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
|
|
|
|
|
13
|
Development Topics / Plugin Development / Re: unresolved symbol errors while linking vamp plugin
|
on: March 13, 2009, 15:57:20
|
|
Hi
I solved that errors which I stated above, now I got to compile all the codes but then I got error in linking..
These are the errors..
pitchdetection.obj : error LNK2019: unresolved external symbol _aubio_pitchfcomb_detect referenced in function "float __cdecl aubio_pitchdetection_fcomb(struct _aubio_pitchdetection_t *,struct _fvec_t *)" (?aubio_pitchdetection_fcomb@@YAMPAU_aubio_pitchdetection_t@@PAU_fvec_t@@@Z) 1>pitchdetection.obj : error LNK2019: unresolved external symbol _aubio_bintofreq referenced in function "float __cdecl aubio_pitchdetection_mcomb(struct _aubio_pitchdetection_t *,struct _fvec_t *)" (?aubio_pitchdetection_mcomb@@YAMPAU_aubio_pitchdetection_t@@PAU_fvec_t@@@Z) 1>pitchdetection.obj : error LNK2019: unresolved external symbol _aubio_pitchmcomb_detect referenced in function "float __cdecl aubio_pitchdetection_mcomb(struct _aubio_pitchdetection_t *,struct _fvec_t *)" (?aubio_pitchdetection_mcomb@@YAMPAU_aubio_pitchdetection_t@@PAU_fvec_t@@@Z) 1>pitchdetection.obj : error LNK2019: unresolved external symbol _aubio_pvoc_do referenced in function "float __cdecl aubio_pitchdetection_mcomb(struct _aubio_pitchdetection_t *,struct _fvec_t *)" (?aubio_pitchdetection_mcomb@@YAMPAU_aubio_pitchdetection_t@@PAU_fvec_t@@@Z) 1>pitchdetection.obj : error LNK2019: unresolved external symbol _aubio_pitchyin_getpitchfast referenced in function "float __cdecl aubio_pitchdetection_yin(struct _aubio_pitchdetection_t *,struct _fvec_t *)" (?aubio_pitchdetection_yin@@YAMPAU_aubio_pitchdetection_t@@PAU_fvec_t@@@Z) 1>pitchdetection.obj : error LNK2019: unresolved external symbol _aubio_freqtomidi referenced in function _new_aubio_pitchdetection 1>pitchdetection.obj : error LNK2019: unresolved external symbol _new_aubio_pitchfcomb referenced in function _new_aubio_pitchdetection 1>pitchdetection.obj : error LNK2019: unresolved external symbol _new_aubio_pitchmcomb referenced in function _new_aubio_pitchdetection 1>pitchdetection.obj : error LNK2019: unresolved external symbol _new_aubio_pvoc referenced in function _new_aubio_pitchdetection 1>pitchdetection.obj : error LNK2019: unresolved external symbol _del_aubio_pitchfcomb referenced in function _del_aubio_pitchdetection 1>pitchdetection.obj : error LNK2019: unresolved external symbol _del_aubio_pitchmcomb referenced in function _del_aubio_pitchdetection 1>pitchdetection.obj : error LNK2019: unresolved external symbol _del_aubio_pvoc referenced in function _del_aubio_pitchdetection 1>Debug\vamp-example-plugins.dll : fatal error LNK1120: 12 unresolved externals
I really cant move forward...pls help..
|
|
|
|
|
14
|
Development Topics / Plugin Development / Re: unresolved symbol errors while linking vamp plugin
|
on: March 13, 2009, 12:01:53
|
|
Thanks, I got rid of the 'malloc' errors.
I have another problem with these errors.
--error C2057: expected constant expression --error C2466: cannot allocate an array of constant size 0 --error C2133: 'buf' : unknown size
here's some of the codes.
//pitchschmitt.h
#ifndef _PITCHSCHMITT_H #define _PITCHSCHMITT_H
#ifdef __cplusplus extern "C" { #endif
typedef struct _aubio_pitchschmitt_t aubio_pitchschmitt_t;
smpl_t aubio_pitchschmitt_detect (aubio_pitchschmitt_t *p, fvec_t * input); aubio_pitchschmitt_t * new_aubio_pitchschmitt (uint_t size, uint_t samplerate); void del_aubio_pitchschmitt (aubio_pitchschmitt_t *p);
#ifdef __cplusplus } #endif
#endif /* _PITCHSCHMITT_H */
//pitchschmitt.cpp //part where i got those errors
#include <cstdlib> #include "aubio_priv.h" #include "sample.h" #include "pitchschmitt.h"
smpl_t aubio_pitchschmitt_detect (aubio_pitchschmitt_t *p, fvec_t * input) { signed short int buf[input->length];//errors occur here uint_t i; for (i=0; i<input->length; i++) { buf = input->data[0]*32768.; } return aubio_schmittS16LE(p, input->length, buf); }
could you help me this compiler errors.
|
|
|
|
|