Changeset d1c0554 for src


Ignore:
Timestamp:
Oct 2, 2009, 12:56:31 AM (15 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:
47eabeb
Parents:
2cc816a
Message:

src/temporal/[ac]_weighting.[ch]: add 11025 Hz

Location:
src/temporal
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/temporal/a_weighting.c

    r2cc816a rd1c0554  
    6161      break;
    6262
     63    // adsgn 11025
     64    case 11025:
     65      b[0] =  6.014684165832374640459079273568931967020034790039062500e-01;
     66      b[1] = -1.202936833166475150136420779745094478130340576171875000e+00;
     67      b[2] = -6.014684165832373530236054648412391543388366699218750000e-01;
     68      b[3] =  2.405873666332950300272841559490188956260681152343750000e+00;
     69      b[4] = -6.014684165832373530236054648412391543388366699218750000e-01;
     70      b[5] = -1.202936833166475150136420779745094478130340576171875000e+00;
     71      b[6] =  6.014684165832374640459079273568931967020034790039062500e-01;
     72      a[0] =  1.000000000000000000000000000000000000000000000000000000e+00;
     73      a[1] = -2.463578747722854345170162559952586889266967773437500000e+00;
     74      a[2] =  1.096799662705210121060872552334330976009368896484375000e+00;
     75      a[3] =  1.381222210556041218865175324026495218276977539062500000e+00;
     76      a[4] = -1.013875696476876031582037285261321812868118286132812500e+00;
     77      a[5] = -1.839132734476921215982514468123554252088069915771484375e-01;
     78      a[6] =  1.833526393172056623281918064094497822225093841552734375e-01;
     79      break;
     80
    6381    // adsgn 16000
    6482    case 16000:
     
    225243    default:
    226244      AUBIO_ERROR ( "sampling rate of A-weighting filter is %d, should be one of\
    227  8000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.\n",
     245 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.\n",
    228246 samplerate );
    229247      break;
  • src/temporal/a_weighting.h

    r2cc816a rd1c0554  
    4747  scripts in octave 3.0 (debian package 1:3.0.5-6+b2 with octave-signal
    4848  1.0.9-1+b1 on i386), with <pre> [b, a] = adsign(1/Fs) </pre> for various
    49   sampling frequencies (8000, 16000, 22050, 24000, 32000, 44100, 48000, 88200,
    50   96000, and 192000 Hz).
     49  sampling frequencies (8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000,
     50  88200, 96000, and 192000 Hz).
    5151
    5252  The sampling frequency should normally be higher than 20kHz, but most common
     
    6262
    6363  \param samplerate sampling frequency of the signal to filter. Should be one of
    64   8000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, and 192000 Hz
     64  8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, and
     65  192000 Hz
    6566  \param channels number of channels to allocate
    6667
  • src/temporal/c_weighting.c

    r2cc816a rd1c0554  
    5656      break;
    5757
     58    // cdsgn 11025
     59    case 11025:
     60      b[0] =  6.002357155402652244546857218665536493062973022460937500e-01;
     61      b[1] =  0.000000000000000000000000000000000000000000000000000000e+00;
     62      b[2] = -1.200471431080530448909371443733107298612594604492187500e+00;
     63      b[3] =  0.000000000000000000000000000000000000000000000000000000e+00;
     64      b[4] =  6.002357155402652244546857218665536493062973022460937500e-01;
     65      a[0] =  1.000000000000000000000000000000000000000000000000000000e+00;
     66      a[1] = -8.705602141280316397242700077185872942209243774414062500e-01;
     67      a[2] = -9.037199507150940336330791069485712796449661254882812500e-01;
     68      a[3] =  4.758433040929530011275971901341108605265617370605468750e-01;
     69      a[4] =  2.987653956523212417373258631414500996470451354980468750e-01;
     70      break;
     71
    5872    // cdsgn 16000
    5973    case 16000:
     
    184198    default:
    185199      AUBIO_ERROR ( "sampling rate of C-weighting filter is %d, should be one of\
    186  8000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.\n",
     200 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 192000.\n",
    187201 samplerate );
    188202      break;
  • src/temporal/c_weighting.h

    r2cc816a rd1c0554  
    4747  scripts in octave 3.0 (debian package 1:3.0.5-6+b2 with octave-signal
    4848  1.0.9-1+b1 on i386), with <pre> [b, a] = cdsign(1/Fs) </pre> for various
    49   sampling frequencies (8000, 16000, 22050, 24000, 32000, 44100, 48000, 88200,
    50   96000, and 192000 Hz).
     49  sampling frequencies (8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000,
     50  88200, 96000, and 192000 Hz).
    5151
    5252  The sampling frequency should normally be higher than 20kHz, but most common
     
    6262
    6363  \param samplerate sampling frequency of the signal to filter. Should be one of
    64   8000, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, and 192000 Hz
     64  8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, and
     65  192000 Hz
    6566  \param channels number of channels to allocate
    6667
Note: See TracChangeset for help on using the changeset viewer.