Changeset c7713b2


Ignore:
Timestamp:
Mar 3, 2006, 6:41:24 AM (18 years ago)
Author:
Paul Brossier <piem@altern.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:
13c3fba
Parents:
ec10780
Message:

update aubioclass cvec
update aubioclass cvec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/aubioclass.py

    rec10780 rc7713b2  
    2525        del_cvec(self())
    2626    def get(self,pos,chan):
     27        return self.get_norm(pos,chan)
     28    def set(self,val,pos,chan):
     29        self.set_norm(val,chan,pos)
     30    def get_norm(self,pos,chan):
    2731        return cvec_read_norm(self(),chan,pos)
    28 
    29     """
    30         cvec_write_norm(cvec_t *s, smpl_t data, uint_t channel, uint_t position);
    31         cvec_write_phas(cvec_t *s, smpl_t data, uint_t channel, uint_t position);
    32         cvec_read_norm (cvec_t *s, uint_t channel, uint_t position);
    33         cvec_read_phas (cvec_t *s, uint_t channel, uint_t position);
    34         cvec_put_norm_channel(cvec_t *s, smpl_t * data, uint_t channel);
    35         cvec_put_phas_channel(cvec_t *s, smpl_t * data, uint_t channel);
    36         cvec_get_norm_channel(cvec_t *s, uint_t channel);
    37         cvec_get_phas_channel(cvec_t *s, uint_t channel);
    38     """
     32    def set_norm(self,val,pos,chan):
     33        cvec_write_norm(self(),val,chan,pos)
     34    def get_phas(self,pos,chan):
     35        return cvec_read_phas(self(),chan,pos)
     36    def set_phas(self,val,pos,chan):
     37        cvec_write_phas(self(),val,chan,pos)
    3938
    4039class sndfile:
Note: See TracChangeset for help on using the changeset viewer.