Changeset f918cb9 for src


Ignore:
Timestamp:
Sep 8, 2007, 2:12:36 PM (17 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
55ce41c
Parents:
73eaa2e
Message:

filterbank.c: update header, fix fvec_t typo, allocate aubio_filterbank_t in the first place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/filterbank.c

    r73eaa2e rf918cb9  
    11/*
    2    Copyright (C) 2007 Amaury Hazan
    3    Ported to aubio from LibXtract
    4    http://libxtract.sourceforge.net/
    5    
     2   Copyright (C) 2007 Amaury Hazan <ahazan@iua.upf.edu>
     3                  and Paul Brossier <piem@piem.org>
    64
    75   This program is free software; you can redistribute it and/or modify
     
    2119*/
    2220
     21/* part of this mfcc implementation were inspired from LibXtract
     22   http://libxtract.sourceforge.net/
     23*/
     24
    2325#include "aubio_priv.h"
    2426#include "filterbank.h"
    25 
    26 
    27 // Struct Declaration
    2827
    2928/** \brief A structure to store a set of n_filters filters of lenghts win_s */
     
    3534
    3635aubio_filterbank_t * new_aubio_filterbank(uint_t n_filters, uint_t win_s){
    37  
    38   int filter_cnt;
    3936  /** allocating space for filterbank object */
    4037  aubio_filterbank_t * fb = AUBIO_NEW(aubio_filterbank_t);
     38  uint_t filter_cnt;
    4139  fb->win_s=win_s;
    4240  fb->n_filters=n_filters;
    4341
    4442  /** allocating filter tables */
    45   fb->filters=AUBIO_ARRAY(n_filters,f_vec_t);
     43  fb->filters=AUBIO_ARRAY(n_filters,fvec_t);
    4644  for (filter_cnt=0; filter_cnt<n_filters; filter_cnt++)
    4745    /* considering one-channel filters */
Note: See TracChangeset for help on using the changeset viewer.