annotate plugins/Transcription.h @ 266:d04675d44928 tip master

Refer to SDK from Github
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 02 Jun 2021 14:41:26 +0100
parents 258939b7c810
children
rev   line source
c@120 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
c@120 2
c@120 3 #ifndef _TRANSCRIPTION_PLUGIN_H_
c@183 4 #define _TRANSCRIPTION_PLUGIN_H_
c@120 5
c@120 6 #include <vamp-sdk/Plugin.h>
c@120 7
c@120 8 class Transcription : public Vamp::Plugin
c@120 9 {
c@120 10 public:
c@120 11 Transcription(float inputSampleRate);
c@120 12 virtual ~Transcription();
c@120 13
c@120 14 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
c@120 15 void reset();
c@120 16
c@120 17 InputDomain getInputDomain() const { return TimeDomain; }
c@120 18
c@120 19 std::string getIdentifier() const;
c@120 20 std::string getName() const;
c@120 21 std::string getDescription() const;
c@120 22 std::string getMaker() const;
c@120 23 int getPluginVersion() const;
c@120 24 std::string getCopyright() const;
c@120 25 size_t getPreferredStepSize() const;
c@120 26 size_t getPreferredBlockSize() const;
c@120 27
c@120 28 OutputList getOutputDescriptors() const;
c@120 29
c@120 30 FeatureSet process(const float *const *inputBuffers,
c@120 31 Vamp::RealTime timestamp);
c@120 32
c@120 33 FeatureSet getRemainingFeatures();
c@120 34
c@120 35 protected:
c@178 36 int m_stepSize;
c@178 37 int m_blockSize;
c@120 38 double * m_SoundIn;
c@178 39 int m_SampleN;
c@178 40 int m_AllocN;
c@120 41 bool m_Excess;
c@120 42 Vamp::RealTime m_Base;
c@120 43 /*
c@120 44 void sofacomplexMex(double *y, double *z, int ncols,double StartNote,double NoteInterval1,double NoteNum,double C,double D);
c@120 45 void FindMaxN( double *InputArray, int InputLen,int MaxOrder);
c@120 46 double SumF(double *InputArray,int Start, int End);
c@120 47 int round10(int x) ;
c@120 48 void ConToPitch1250(double *In, int InLen);
c@120 49 void Norm1(double *In, int InLen);
c@120 50 void Smooth(double *In, int InLen,int smoothLen);
c@120 51 void FindPeaks(double *In, int InLen,double *Out1,double *Out2, int db, int db2, int db3);
c@120 52 void ConFrom1050To960(double *In, double *out, int InputLen);
c@120 53 void Move( double *InputArray, int InputLen,int m);
c@120 54 double SumArray( double *InputArray, int InputHLen, int InputVLen);
c@120 55 double Sum( double *InputArray, int InputHLen);
c@120 56 void MeanV2( double *InputArray, int InputHLen, int InputVLen, double *OutArray);
c@120 57 void SumV( double *InputArray, int InputHLen, int InputVLen, double *OutArray);
c@120 58 void SumV2( double *InputArray, int InputHLen, int InputVLen, double *OutArray);
c@120 59 void MaxV( double *InputArray, int InputHLen, int InputVLen, double *OutArray);
c@120 60 void MaxV2( double *InputArray, int InputHLen, int InputVLen, double *OutArray);
c@120 61 void MinArray( double *InputArray, int InputHLen, int InputVLen, double MinValue);
c@120 62 void MaxArray( double *InputArray, int InputHLen, int InputVLen, double MaxValue);
c@120 63 double GetMaxValue( double *InputArray, int InputHLen, int InputVLen);
c@120 64 void RemoveNoise( double *InputArray, int InputHLen, int InputVLen);
c@120 65 double MeanArray( double *InputArray, int InputHLen, int InputVLen);
c@120 66 void Mydiff( double *InputArray, int InputHLen, int InputVLen,int n);
c@120 67 void PeakDetect(double *In, int InLen);
c@120 68 void MeanV( double *InputArray, int InputHLen, int InputVLen, double *OutArray);
c@120 69 void Edetect(double *InputArray, int InputHLen, int InputVLen, double MinT, double db1,double *OutOne);
c@120 70 void OnsetDetection2(double *In,int InputLen,double *OutOne,double a,double b);
c@120 71 void PitchEstimation(double *In, int InLen, double *OutArray,double *OutArray2);
c@120 72 void DoMultiPitch(double *In, int RLen,int CLen, double *Out1, double *Out2);
c@120 73 int OnsetToArray(double *In, int Len, double *OutStart,double *OutEnd);
c@120 74 void dbfunction( double *InputArray, int InputHLen, int InputVLen,double *OutArray);
c@120 75
c@120 76 void Transcribe(int Len,int inputLen,double *SoundIn,double *out,double *outArray2,double *outArray3);*/
c@120 77
c@120 78 };
c@120 79
c@120 80
c@120 81 #endif