History

fix norm in aubioclass fix norm in aubioclass

Paul Brossier committed 20 years ago

Commit dcc8d901 parent 431e9d81 file · +12 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/aubio/aubioclass.py+12−1
@@ -24,7 +24,18 @@ class cvec: · 23 unmodified lines
24 def __del__(self):24 def __del__(self):
25 del_cvec(self())25 del_cvec(self())
26 def get(self,pos,chan):26 def get(self,pos,chan):
27 return fvec_read_sample(self(),chan,pos)27 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 """
28 39
29class sndfile:40class sndfile:
30 def __init__(self,filename,model=None):41 def __init__(self,filename,model=None):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t