Changeset 175a218 for tests


Ignore:
Timestamp:
Dec 30, 2013, 9:50:29 PM (11 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:
158e031
Parents:
413d4bf
Message:

src/lvec.c: add missing lvec_set_sample, improve test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/test-lvec.c

    r413d4bf r175a218  
    11#include <aubio.h>
     2#include "utils_tests.h"
    23
    34int main()
    45{
    5   uint_t win_s = 1024; // window size
     6  uint_t win_s = 32; // window size
    67  lvec_t * sp = new_lvec (win_s); // input buffer
     8  lvec_set_sample (sp, 2./3., 0);
     9  PRINT_MSG("%lf\n", lvec_get_sample (sp, 0));
     10  lvec_print (sp);
     11  lvec_ones (sp);
     12  lvec_print (sp);
     13  lvec_set_all (sp, 3./5.);
     14  lvec_print (sp);
    715  del_lvec(sp);
    816  return 0;
Note: See TracChangeset for help on using the changeset viewer.