[96fb8ad] | 1 | /* |
---|
[e6a78ea] | 2 | Copyright (C) 2003-2009 Paul Brossier <piem@aubio.org> |
---|
| 3 | |
---|
| 4 | This file is part of aubio. |
---|
| 5 | |
---|
| 6 | aubio is free software: you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation, either version 3 of the License, or |
---|
| 9 | (at your option) any later version. |
---|
| 10 | |
---|
| 11 | aubio is distributed in the hope that it will be useful, |
---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | GNU General Public License for more details. |
---|
| 15 | |
---|
| 16 | You should have received a copy of the GNU General Public License |
---|
| 17 | along with aubio. If not, see <http://www.gnu.org/licenses/>. |
---|
| 18 | |
---|
| 19 | */ |
---|
[96fb8ad] | 20 | |
---|
| 21 | #include "aubio_priv.h" |
---|
[6c7d49b] | 22 | #include "fvec.h" |
---|
| 23 | #include "cvec.h" |
---|
[a4364b8] | 24 | #include "lvec.h" |
---|
[96fb8ad] | 25 | #include "mathutils.h" |
---|
[83963b3] | 26 | #include "musicutils.h" |
---|
| 27 | #include "spectral/phasevoc.h" |
---|
[a695854] | 28 | #include "temporal/filter.h" |
---|
[c159aeb] | 29 | #include "temporal/c_weighting.h" |
---|
[2d8cffa] | 30 | #include "pitch/pitchmcomb.h" |
---|
| 31 | #include "pitch/pitchyin.h" |
---|
| 32 | #include "pitch/pitchfcomb.h" |
---|
| 33 | #include "pitch/pitchschmitt.h" |
---|
| 34 | #include "pitch/pitchyinfft.h" |
---|
[ca1abdd] | 35 | #include "pitch/pitch.h" |
---|
[96fb8ad] | 36 | |
---|
[fe163ad] | 37 | /** pitch detection algorithm */ |
---|
[fddfa64] | 38 | typedef enum |
---|
| 39 | { |
---|
[ca1abdd] | 40 | aubio_pitcht_yin, /**< YIN algorithm */ |
---|
| 41 | aubio_pitcht_mcomb, /**< Multi-comb filter */ |
---|
| 42 | aubio_pitcht_schmitt, /**< Schmitt trigger */ |
---|
| 43 | aubio_pitcht_fcomb, /**< Fast comb filter */ |
---|
| 44 | aubio_pitcht_yinfft, /**< Spectral YIN */ |
---|
| 45 | aubio_pitcht_default = aubio_pitcht_yinfft, /**< the one used when "default" is asked */ |
---|
| 46 | } aubio_pitch_type; |
---|
[fe163ad] | 47 | |
---|
| 48 | /** pitch detection output mode */ |
---|
[fddfa64] | 49 | typedef enum |
---|
| 50 | { |
---|
[fe163ad] | 51 | aubio_pitchm_freq, /**< Frequency (Hz) */ |
---|
| 52 | aubio_pitchm_midi, /**< MIDI note (0.,127) */ |
---|
| 53 | aubio_pitchm_cent, /**< Cent */ |
---|
| 54 | aubio_pitchm_bin, /**< Frequency bin (0,bufsize) */ |
---|
| 55 | aubio_pitchm_default = aubio_pitchm_freq, /**< the one used when "default" is asked */ |
---|
[ca1abdd] | 56 | } aubio_pitch_mode; |
---|
[fe163ad] | 57 | |
---|
[ca1abdd] | 58 | typedef void (*aubio_pitch_func_t) |
---|
[fddfa64] | 59 | (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf); |
---|
[ca1abdd] | 60 | typedef smpl_t (*aubio_pitch_conv_t) |
---|
[6d4ec49] | 61 | (smpl_t value, uint_t srate, uint_t bufsize); |
---|
| 62 | |
---|
[fddfa64] | 63 | void aubio_pitch_slideblock (aubio_pitch_t * p, fvec_t * ibuf); |
---|
[c078336] | 64 | |
---|
[fddfa64] | 65 | void aubio_pitch_do_mcomb (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf); |
---|
| 66 | void aubio_pitch_do_yin (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf); |
---|
| 67 | void aubio_pitch_do_schmitt (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf); |
---|
| 68 | void aubio_pitch_do_fcomb (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf); |
---|
| 69 | void aubio_pitch_do_yinfft (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf); |
---|
[f44b111] | 70 | |
---|
[475da2f] | 71 | /** generic pitch detection structure */ |
---|
[fddfa64] | 72 | struct _aubio_pitch_t |
---|
| 73 | { |
---|
[ca1abdd] | 74 | aubio_pitch_type type; /**< pitch detection mode */ |
---|
| 75 | aubio_pitch_mode mode; /**< pitch detection output mode */ |
---|
[475da2f] | 76 | uint_t srate; /**< samplerate */ |
---|
| 77 | uint_t bufsize; /**< buffer size */ |
---|
[fddfa64] | 78 | aubio_pitchmcomb_t *mcomb; /**< mcomb object */ |
---|
| 79 | aubio_pitchfcomb_t *fcomb; /**< fcomb object */ |
---|
| 80 | aubio_pitchschmitt_t *schmitt; /**< schmitt object */ |
---|
| 81 | aubio_pitchyinfft_t *yinfft; /**< yinfft object */ |
---|
| 82 | aubio_pitchyin_t *yin; /**< yinfft object */ |
---|
| 83 | aubio_filter_t *filter; /**< filter */ |
---|
| 84 | aubio_pvoc_t *pv; /**< phase vocoder for mcomb */ |
---|
| 85 | cvec_t *fftgrain; /**< spectral frame for mcomb */ |
---|
| 86 | fvec_t *buf; /**< temporary buffer for yin */ |
---|
[ca1abdd] | 87 | aubio_pitch_func_t callback; /**< pointer to current pitch detection method */ |
---|
[fddfa64] | 88 | aubio_pitch_conv_t freqconv; /**< pointer to current pitch conversion method */ |
---|
[96fb8ad] | 89 | }; |
---|
| 90 | |
---|
[3ec9d9c] | 91 | /* convenience wrapper function for frequency unit conversions |
---|
| 92 | * should probably be rewritten with #defines */ |
---|
[fddfa64] | 93 | smpl_t freqconvbin (smpl_t f, uint_t srate, uint_t bufsize); |
---|
| 94 | smpl_t |
---|
| 95 | freqconvbin (smpl_t f, uint_t srate, uint_t bufsize) |
---|
| 96 | { |
---|
| 97 | return aubio_freqtobin (f, srate, bufsize); |
---|
[3ec9d9c] | 98 | } |
---|
| 99 | |
---|
[fddfa64] | 100 | smpl_t freqconvmidi (smpl_t f, uint_t srate, uint_t bufsize); |
---|
| 101 | smpl_t |
---|
| 102 | freqconvmidi (smpl_t f, uint_t srate UNUSED, uint_t bufsize UNUSED) |
---|
| 103 | { |
---|
| 104 | return aubio_freqtomidi (f); |
---|
[3ec9d9c] | 105 | } |
---|
| 106 | |
---|
[fddfa64] | 107 | smpl_t freqconvpass (smpl_t f, uint_t srate, uint_t bufsize); |
---|
| 108 | smpl_t |
---|
| 109 | freqconvpass (smpl_t f, uint_t srate UNUSED, uint_t bufsize UNUSED) |
---|
| 110 | { |
---|
[6d4ec49] | 111 | return f; |
---|
[3ec9d9c] | 112 | } |
---|
| 113 | |
---|
[ca1abdd] | 114 | aubio_pitch_t * |
---|
| 115 | new_aubio_pitch (char_t * pitch_mode, |
---|
[fe163ad] | 116 | uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate) |
---|
[96fb8ad] | 117 | { |
---|
[fddfa64] | 118 | aubio_pitch_t *p = AUBIO_NEW (aubio_pitch_t); |
---|
[ca1abdd] | 119 | aubio_pitch_type pitch_type; |
---|
[fe163ad] | 120 | if (strcmp (pitch_mode, "mcomb") == 0) |
---|
[fddfa64] | 121 | pitch_type = aubio_pitcht_mcomb; |
---|
[fe163ad] | 122 | else if (strcmp (pitch_mode, "yinfft") == 0) |
---|
[fddfa64] | 123 | pitch_type = aubio_pitcht_yin; |
---|
[fe163ad] | 124 | else if (strcmp (pitch_mode, "yin") == 0) |
---|
[fddfa64] | 125 | pitch_type = aubio_pitcht_yin; |
---|
[fe163ad] | 126 | else if (strcmp (pitch_mode, "schmitt") == 0) |
---|
[fddfa64] | 127 | pitch_type = aubio_pitcht_schmitt; |
---|
[fe163ad] | 128 | else if (strcmp (pitch_mode, "fcomb") == 0) |
---|
[fddfa64] | 129 | pitch_type = aubio_pitcht_fcomb; |
---|
[fe163ad] | 130 | else if (strcmp (pitch_mode, "default") == 0) |
---|
[fddfa64] | 131 | pitch_type = aubio_pitcht_default; |
---|
[fe163ad] | 132 | else { |
---|
[fddfa64] | 133 | AUBIO_ERR ("unknown pitch detection method %s, using default.\n", |
---|
| 134 | pitch_mode); |
---|
| 135 | pitch_type = aubio_pitcht_default; |
---|
| 136 | return NULL; |
---|
[fe163ad] | 137 | } |
---|
[6d4ec49] | 138 | p->srate = samplerate; |
---|
[fe163ad] | 139 | p->type = pitch_type; |
---|
[ca1abdd] | 140 | aubio_pitch_set_unit (p, "default"); |
---|
[6d4ec49] | 141 | p->bufsize = bufsize; |
---|
[fddfa64] | 142 | switch (p->type) { |
---|
[ca1abdd] | 143 | case aubio_pitcht_yin: |
---|
[fddfa64] | 144 | p->buf = new_fvec (bufsize, channels); |
---|
| 145 | p->yin = new_aubio_pitchyin (bufsize); |
---|
[ca1abdd] | 146 | p->callback = aubio_pitch_do_yin; |
---|
[7a6cbbe] | 147 | aubio_pitchyin_set_tolerance (p->yin, 0.15); |
---|
[6d4ec49] | 148 | break; |
---|
[ca1abdd] | 149 | case aubio_pitcht_mcomb: |
---|
[fddfa64] | 150 | p->pv = new_aubio_pvoc (bufsize, hopsize, channels); |
---|
| 151 | p->fftgrain = new_cvec (bufsize, channels); |
---|
| 152 | p->mcomb = new_aubio_pitchmcomb (bufsize, hopsize, channels); |
---|
| 153 | p->filter = new_aubio_filter_c_weighting (samplerate, channels); |
---|
[ca1abdd] | 154 | p->callback = aubio_pitch_do_mcomb; |
---|
[6d4ec49] | 155 | break; |
---|
[ca1abdd] | 156 | case aubio_pitcht_fcomb: |
---|
[fddfa64] | 157 | p->buf = new_fvec (bufsize, channels); |
---|
| 158 | p->fcomb = new_aubio_pitchfcomb (bufsize, hopsize, channels); |
---|
[ca1abdd] | 159 | p->callback = aubio_pitch_do_fcomb; |
---|
[6d4ec49] | 160 | break; |
---|
[ca1abdd] | 161 | case aubio_pitcht_schmitt: |
---|
[fddfa64] | 162 | p->buf = new_fvec (bufsize, channels); |
---|
| 163 | p->schmitt = new_aubio_pitchschmitt (bufsize); |
---|
[ca1abdd] | 164 | p->callback = aubio_pitch_do_schmitt; |
---|
[6d4ec49] | 165 | break; |
---|
[ca1abdd] | 166 | case aubio_pitcht_yinfft: |
---|
[fddfa64] | 167 | p->buf = new_fvec (bufsize, channels); |
---|
| 168 | p->yinfft = new_aubio_pitchyinfft (bufsize); |
---|
[ca1abdd] | 169 | p->callback = aubio_pitch_do_yinfft; |
---|
[7a6cbbe] | 170 | aubio_pitchyinfft_set_tolerance (p->yinfft, 0.85); |
---|
[6d4ec49] | 171 | break; |
---|
| 172 | default: |
---|
| 173 | break; |
---|
| 174 | } |
---|
| 175 | return p; |
---|
[96fb8ad] | 176 | } |
---|
| 177 | |
---|
[fddfa64] | 178 | void |
---|
| 179 | del_aubio_pitch (aubio_pitch_t * p) |
---|
| 180 | { |
---|
| 181 | switch (p->type) { |
---|
[ca1abdd] | 182 | case aubio_pitcht_yin: |
---|
[fddfa64] | 183 | del_fvec (p->buf); |
---|
| 184 | del_aubio_pitchyin (p->yin); |
---|
[6d4ec49] | 185 | break; |
---|
[ca1abdd] | 186 | case aubio_pitcht_mcomb: |
---|
[fddfa64] | 187 | del_aubio_pvoc (p->pv); |
---|
| 188 | del_cvec (p->fftgrain); |
---|
| 189 | del_aubio_filter (p->filter); |
---|
| 190 | del_aubio_pitchmcomb (p->mcomb); |
---|
[6d4ec49] | 191 | break; |
---|
[ca1abdd] | 192 | case aubio_pitcht_schmitt: |
---|
[fddfa64] | 193 | del_fvec (p->buf); |
---|
| 194 | del_aubio_pitchschmitt (p->schmitt); |
---|
[6d4ec49] | 195 | break; |
---|
[ca1abdd] | 196 | case aubio_pitcht_fcomb: |
---|
[fddfa64] | 197 | del_fvec (p->buf); |
---|
| 198 | del_aubio_pitchfcomb (p->fcomb); |
---|
[6d4ec49] | 199 | break; |
---|
[ca1abdd] | 200 | case aubio_pitcht_yinfft: |
---|
[fddfa64] | 201 | del_fvec (p->buf); |
---|
| 202 | del_aubio_pitchyinfft (p->yinfft); |
---|
[6d4ec49] | 203 | break; |
---|
| 204 | default: |
---|
| 205 | break; |
---|
| 206 | } |
---|
[fddfa64] | 207 | AUBIO_FREE (p); |
---|
[96fb8ad] | 208 | } |
---|
| 209 | |
---|
[fddfa64] | 210 | void |
---|
| 211 | aubio_pitch_slideblock (aubio_pitch_t * p, fvec_t * ibuf) |
---|
| 212 | { |
---|
| 213 | uint_t i, j = 0, overlap_size = 0; |
---|
| 214 | overlap_size = p->buf->length - ibuf->length; |
---|
| 215 | for (i = 0; i < p->buf->channels; i++) { |
---|
| 216 | for (j = 0; j < overlap_size; j++) { |
---|
| 217 | p->buf->data[i][j] = p->buf->data[i][j + ibuf->length]; |
---|
[6d4ec49] | 218 | } |
---|
| 219 | } |
---|
[fddfa64] | 220 | for (i = 0; i < ibuf->channels; i++) { |
---|
| 221 | for (j = 0; j < ibuf->length; j++) { |
---|
| 222 | p->buf->data[i][j + overlap_size] = ibuf->data[i][j]; |
---|
[6d4ec49] | 223 | } |
---|
| 224 | } |
---|
[651b97e] | 225 | } |
---|
| 226 | |
---|
[fddfa64] | 227 | uint_t |
---|
| 228 | aubio_pitch_set_unit (aubio_pitch_t * p, char_t * pitch_unit) |
---|
| 229 | { |
---|
[ca1abdd] | 230 | aubio_pitch_mode pitch_mode; |
---|
[fe163ad] | 231 | if (strcmp (pitch_unit, "freq") == 0) |
---|
[fddfa64] | 232 | pitch_mode = aubio_pitchm_freq; |
---|
[fe163ad] | 233 | else if (strcmp (pitch_unit, "midi") == 0) |
---|
[fddfa64] | 234 | pitch_mode = aubio_pitchm_midi; |
---|
[fe163ad] | 235 | else if (strcmp (pitch_unit, "cent") == 0) |
---|
[fddfa64] | 236 | pitch_mode = aubio_pitchm_cent; |
---|
[fe163ad] | 237 | else if (strcmp (pitch_unit, "bin") == 0) |
---|
[fddfa64] | 238 | pitch_mode = aubio_pitchm_bin; |
---|
[fe163ad] | 239 | else if (strcmp (pitch_unit, "default") == 0) |
---|
[fddfa64] | 240 | pitch_mode = aubio_pitchm_default; |
---|
[fe163ad] | 241 | else { |
---|
[fddfa64] | 242 | AUBIO_ERR ("unknown pitch detection unit %s, using default\n", pitch_unit); |
---|
| 243 | pitch_mode = aubio_pitchm_default; |
---|
[fe163ad] | 244 | } |
---|
| 245 | p->mode = pitch_mode; |
---|
[fddfa64] | 246 | switch (p->mode) { |
---|
[fe163ad] | 247 | case aubio_pitchm_freq: |
---|
| 248 | p->freqconv = freqconvpass; |
---|
| 249 | break; |
---|
| 250 | case aubio_pitchm_midi: |
---|
| 251 | p->freqconv = freqconvmidi; |
---|
| 252 | break; |
---|
| 253 | case aubio_pitchm_cent: |
---|
| 254 | /* bug: not implemented */ |
---|
| 255 | p->freqconv = freqconvmidi; |
---|
| 256 | break; |
---|
| 257 | case aubio_pitchm_bin: |
---|
| 258 | p->freqconv = freqconvbin; |
---|
| 259 | break; |
---|
| 260 | default: |
---|
| 261 | break; |
---|
| 262 | } |
---|
[93177fa] | 263 | return AUBIO_OK; |
---|
[fe163ad] | 264 | } |
---|
| 265 | |
---|
[fddfa64] | 266 | uint_t |
---|
| 267 | aubio_pitch_set_tolerance (aubio_pitch_t * p, smpl_t tol) |
---|
| 268 | { |
---|
| 269 | switch (p->type) { |
---|
[ca1abdd] | 270 | case aubio_pitcht_yin: |
---|
[7a6cbbe] | 271 | aubio_pitchyin_set_tolerance (p->yin, tol); |
---|
| 272 | break; |
---|
[ca1abdd] | 273 | case aubio_pitcht_yinfft: |
---|
[7a6cbbe] | 274 | aubio_pitchyinfft_set_tolerance (p->yinfft, tol); |
---|
| 275 | break; |
---|
| 276 | default: |
---|
| 277 | break; |
---|
| 278 | } |
---|
[93177fa] | 279 | return AUBIO_OK; |
---|
[f8a38c5] | 280 | } |
---|
| 281 | |
---|
[fddfa64] | 282 | void |
---|
| 283 | aubio_pitch_do (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf) |
---|
| 284 | { |
---|
[7a6cbbe] | 285 | uint_t i; |
---|
[fddfa64] | 286 | p->callback (p, ibuf, obuf); |
---|
[7a6cbbe] | 287 | for (i = 0; i < obuf->channels; i++) { |
---|
[fddfa64] | 288 | p->freqconv (obuf->data[i][0], p->srate, p->bufsize); |
---|
[7a6cbbe] | 289 | } |
---|
[c078336] | 290 | } |
---|
| 291 | |
---|
[fddfa64] | 292 | void |
---|
| 293 | aubio_pitch_do_mcomb (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf) |
---|
| 294 | { |
---|
[7a6cbbe] | 295 | uint_t i; |
---|
[fddfa64] | 296 | aubio_filter_do (p->filter, ibuf); |
---|
| 297 | aubio_pvoc_do (p->pv, ibuf, p->fftgrain); |
---|
| 298 | aubio_pitchmcomb_do (p->mcomb, p->fftgrain, obuf); |
---|
[7a6cbbe] | 299 | for (i = 0; i < obuf->channels; i++) { |
---|
| 300 | obuf->data[i][0] = aubio_bintofreq (obuf->data[i][0], p->srate, p->bufsize); |
---|
[6d4ec49] | 301 | } |
---|
[c078336] | 302 | } |
---|
| 303 | |
---|
[fddfa64] | 304 | void |
---|
| 305 | aubio_pitch_do_yin (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf) |
---|
| 306 | { |
---|
[6d4ec49] | 307 | smpl_t pitch = 0.; |
---|
[7a6cbbe] | 308 | uint_t i; |
---|
[fddfa64] | 309 | aubio_pitch_slideblock (p, ibuf); |
---|
| 310 | aubio_pitchyin_do (p->yin, p->buf, obuf); |
---|
[7a6cbbe] | 311 | for (i = 0; i < obuf->channels; i++) { |
---|
| 312 | pitch = obuf->data[i][0]; |
---|
[fddfa64] | 313 | if (pitch > 0) { |
---|
| 314 | pitch = p->srate / (pitch + 0.); |
---|
[7a6cbbe] | 315 | } else { |
---|
| 316 | pitch = 0.; |
---|
| 317 | } |
---|
| 318 | obuf->data[i][0] = pitch; |
---|
[6d4ec49] | 319 | } |
---|
[c078336] | 320 | } |
---|
| 321 | |
---|
| 322 | |
---|
[fddfa64] | 323 | void |
---|
| 324 | aubio_pitch_do_yinfft (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * obuf) |
---|
| 325 | { |
---|
[6d4ec49] | 326 | smpl_t pitch = 0.; |
---|
[7a6cbbe] | 327 | uint_t i; |
---|
[fddfa64] | 328 | aubio_pitch_slideblock (p, ibuf); |
---|
| 329 | aubio_pitchyinfft_do (p->yinfft, p->buf, obuf); |
---|
[7a6cbbe] | 330 | for (i = 0; i < obuf->channels; i++) { |
---|
| 331 | pitch = obuf->data[i][0]; |
---|
[fddfa64] | 332 | if (pitch > 0) { |
---|
| 333 | pitch = p->srate / (pitch + 0.); |
---|
[7a6cbbe] | 334 | } else { |
---|
| 335 | pitch = 0.; |
---|
| 336 | } |
---|
| 337 | obuf->data[i][0] = pitch; |
---|
[6d4ec49] | 338 | } |
---|
[650e39b] | 339 | } |
---|
| 340 | |
---|
[fddfa64] | 341 | void |
---|
| 342 | aubio_pitch_do_fcomb (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * out) |
---|
| 343 | { |
---|
[7a6cbbe] | 344 | uint_t i; |
---|
[fddfa64] | 345 | aubio_pitch_slideblock (p, ibuf); |
---|
| 346 | aubio_pitchfcomb_do (p->fcomb, p->buf, out); |
---|
[7a6cbbe] | 347 | for (i = 0; i < out->channels; i++) { |
---|
| 348 | out->data[i][0] = aubio_bintofreq (out->data[i][0], p->srate, p->bufsize); |
---|
| 349 | } |
---|
[c078336] | 350 | } |
---|
| 351 | |
---|
[fddfa64] | 352 | void |
---|
| 353 | aubio_pitch_do_schmitt (aubio_pitch_t * p, fvec_t * ibuf, fvec_t * out) |
---|
| 354 | { |
---|
[7a6cbbe] | 355 | smpl_t period, pitch = 0.; |
---|
| 356 | uint_t i; |
---|
[fddfa64] | 357 | aubio_pitch_slideblock (p, ibuf); |
---|
| 358 | aubio_pitchschmitt_do (p->schmitt, p->buf, out); |
---|
[7a6cbbe] | 359 | for (i = 0; i < out->channels; i++) { |
---|
| 360 | period = out->data[i][0]; |
---|
[fddfa64] | 361 | if (period > 0) { |
---|
| 362 | pitch = p->srate / period; |
---|
[7a6cbbe] | 363 | } else { |
---|
| 364 | pitch = 0.; |
---|
| 365 | } |
---|
| 366 | out->data[i][0] = pitch; |
---|
| 367 | } |
---|
[96fb8ad] | 368 | } |
---|