Changeset 88fee8f


Ignore:
Timestamp:
Nov 27, 2013, 11:46:25 PM (10 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:
c666a18
Parents:
39a7b26
Message:

src/pitch/pitchyinfft.c: beautify frequency weighting coefficients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchyinfft.c

    r39a7b26 r88fee8f  
    4141};
    4242
    43 static const smpl_t freqs[] = { 0., 20., 25., 31.5, 40., 50., 63., 80., 100.,
    44   125., 160., 200., 250., 315., 400., 500., 630., 800., 1000., 1250.,
    45   1600., 2000., 2500., 3150., 4000., 5000., 6300., 8000., 9000., 10000.,
    46   12500., 15000., 20000., 25100
     43static const smpl_t freqs[] = {
     44     0.,    20.,    25.,   31.5,    40.,    50.,    63.,    80.,   100.,   125.,
     45   160.,   200.,   250.,   315.,   400.,   500.,   630.,   800.,  1000.,  1250.,
     46  1600.,  2000.,  2500.,  3150.,  4000.,  5000.,  6300.,  8000.,  9000., 10000.,
     47 12500., 15000., 20000., 25100
    4748};
    4849
    49 static const smpl_t weight[] = { -75.8, -70.1, -60.8, -52.1, -44.2, -37.5,
    50   -31.3, -25.6, -20.9, -16.5, -12.6, -9.6, -7.0, -4.7, -3.0, -1.8, -0.8,
    51   -0.2, -0.0, 0.5, 1.6, 3.2, 5.4, 7.8, 8.1, 5.3, -2.4, -11.1, -12.8,
    52   -12.2, -7.4, -17.8, -17.8, -17.8
     50static const smpl_t weight[] = {
     51  -75.8,  -70.1,  -60.8,  -52.1,  -44.2,  -37.5,  -31.3,  -25.6,  -20.9,  -16.5,
     52  -12.6,  -9.60,  -7.00,  -4.70,  -3.00,  -1.80,  -0.80,  -0.20,  -0.00,   0.50,
     53   1.60,   3.20,   5.40,   7.80,   8.10,   5.30,  -2.40,  -11.1,  -12.8,  -12.2,
     54  -7.40,  -17.8,  -17.8,  -17.8
    5355};
    5456
Note: See TracChangeset for help on using the changeset viewer.