コード例 #1
0
ファイル: ChromaResampler.cs プロジェクト: wo80/AcoustID.NET
 public ChromaResampler(int factor, IFeatureVectorConsumer consumer)
 {
     m_result = new double[12]; //0.0
     m_iteration = 0;
     m_factor = factor;
     m_consumer = consumer;
 }
コード例 #2
0
 public ChromaResampler(int factor, IFeatureVectorConsumer consumer)
 {
     m_result    = new double[12]; //0.0
     m_iteration = 0;
     m_factor    = factor;
     m_consumer  = consumer;
 }
コード例 #3
0
ファイル: Spectrum.cs プロジェクト: Iztral/Library-Bridger
 public Spectrum(int num_bands, int min_freq, int max_freq, int frame_size, int sample_rate, IFeatureVectorConsumer consumer)
 {
     m_bands    = new List <int>(num_bands + 1);
     m_features = new double[num_bands];
     m_consumer = consumer;
     PrepareBands(num_bands, min_freq, max_freq, frame_size, sample_rate);
 }
コード例 #4
0
ファイル: Spectrum.cs プロジェクト: wo80/AcoustID.NET
 public Spectrum(int num_bands, int min_freq, int max_freq, int frame_size, int sample_rate, IFeatureVectorConsumer consumer)
 {
     m_bands = new List<int>(num_bands + 1);
     m_features = new double[num_bands];
     m_consumer = consumer;
     PrepareBands(num_bands, min_freq, max_freq, frame_size, sample_rate);
 }
コード例 #5
0
 public ChromaFilter(double[] coefficients, IFeatureVectorConsumer consumer)
 {
     m_coefficients  = coefficients;
     m_length        = coefficients.Length;
     m_buffer        = new double[8][];
     m_result        = new double[12];
     m_buffer_offset = 0;
     m_buffer_size   = 1;
     m_consumer      = consumer;
 }
コード例 #6
0
ファイル: ChromaFilter.cs プロジェクト: gaborp/AcoustID.NET
 public ChromaFilter(double[] coefficients, IFeatureVectorConsumer consumer)
 {
     m_coefficients = coefficients;
     m_length = coefficients.Length;
     m_buffer = new double[8][];
     m_result = new double[12];
     m_buffer_offset = 0;
     m_buffer_size = 1;
     m_consumer = consumer;
 }
コード例 #7
0
        public Chroma(int min_freq, int max_freq, int frame_size, int sample_rate, IFeatureVectorConsumer consumer)
        {
            m_interpolate = false;
            m_notes       = new byte[frame_size];
            m_notes_frac  = new double[frame_size];
            m_features    = new double[NUM_BANDS];
            m_consumer    = consumer;

            PrepareNotes(min_freq, max_freq, frame_size, sample_rate);
        }
コード例 #8
0
ファイル: Chroma.cs プロジェクト: wo80/AcoustID.NET
        public Chroma(int min_freq, int max_freq, int frame_size, int sample_rate, IFeatureVectorConsumer consumer)
        {
            m_interpolate = false;
            m_notes = new byte[frame_size];
            m_notes_frac = new double[frame_size];
            m_features = new double[NUM_BANDS];
            m_consumer = consumer;

            PrepareNotes(min_freq, max_freq, frame_size, sample_rate);
        }
コード例 #9
0
 public ChromaNormalizer(IFeatureVectorConsumer consumer)
 {
     m_consumer = consumer;
 }
コード例 #10
0
 public ChromaNormalizer(IFeatureVectorConsumer consumer)
 {
     m_consumer = consumer;
 }