Changeset 55b7cb4 for src


Ignore:
Timestamp:
Sep 21, 2009, 6:17:02 PM (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:
75a0f40
Parents:
d53a3b5
Message:

src/cvec.c: add cvec_print

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/cvec.c

    rd53a3b5 r55b7cb4  
    8181}
    8282
     83/* helper functions */
     84
     85void cvec_print(cvec_t *s) {
     86  uint_t i,j;
     87  for (i=0; i< s->channels; i++) {
     88    AUBIO_MSG("norm: ");
     89    for (j=0; j< s->length; j++) {
     90      AUBIO_MSG(AUBIO_SMPL_FMT " ", s->norm[i][j]);
     91    }
     92    AUBIO_MSG("\n");
     93    AUBIO_MSG("phas: ");
     94    for (j=0; j< s->length; j++) {
     95      AUBIO_MSG(AUBIO_SMPL_FMT " ", s->phas[i][j]);
     96    }
     97    AUBIO_MSG("\n");
     98  }
     99}
     100
  • src/cvec.h

    rd53a3b5 r55b7cb4  
    181181smpl_t ** cvec_get_phas(cvec_t *s);
    182182
     183/** print out cvec data
     184
     185  \param s vector to print out
     186
     187*/
     188void cvec_print(cvec_t *s);
     189
    183190#ifdef __cplusplus
    184191}
Note: See TracChangeset for help on using the changeset viewer.