Mercurial > hg > btrack
comparison src/OnsetDetectionFunction.cpp @ 16:73c64ca0ed23 develop
Small syntax change for array arguments so they are pointers rather than array[]. Just personal preference.
author | Adam <adamstark.uk@gmail.com> |
---|---|
date | Wed, 22 Jan 2014 01:34:04 +0000 |
parents | 2b94d3d2fb9d |
children | baf35f208814 |
comparison
equal
deleted
inserted
replaced
15:2b94d3d2fb9d | 16:73c64ca0ed23 |
---|---|
166 { | 166 { |
167 df_type = arg_df_type; // set detection function type | 167 df_type = arg_df_type; // set detection function type |
168 } | 168 } |
169 | 169 |
170 //======================================================================= | 170 //======================================================================= |
171 double OnsetDetectionFunction :: getDFsample(double inputbuffer[]) | 171 double OnsetDetectionFunction :: getDFsample(double *inputbuffer) |
172 { | 172 { |
173 double df_sample; | 173 double df_sample; |
174 | 174 |
175 // shift audio samples back in frame by hop size | 175 // shift audio samples back in frame by hop size |
176 for (int i = 0; i < (framesize-hopsize);i++) | 176 for (int i = 0; i < (framesize-hopsize);i++) |