andrew@0: /* andrew@0: Copyright (C) 2003 Paul Brossier andrew@0: andrew@0: This program is free software; you can redistribute it and/or modify andrew@0: it under the terms of the GNU General Public License as published by andrew@0: the Free Software Foundation; either version 2 of the License, or andrew@0: (at your option) any later version. andrew@0: andrew@0: This program is distributed in the hope that it will be useful, andrew@0: but WITHOUT ANY WARRANTY; without even the implied warranty of andrew@0: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the andrew@0: GNU General Public License for more details. andrew@0: andrew@0: You should have received a copy of the GNU General Public License andrew@0: along with this program; if not, write to the Free Software andrew@0: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. andrew@0: andrew@0: */ andrew@0: andrew@0: /** \file andrew@0: andrew@0: Transient / Steady-state Separation (TSS) andrew@0: andrew@0: This file implement a Transient / Steady-state Separation (TSS) as described andrew@0: in: andrew@0: andrew@0: Christopher Duxbury, Mike E. Davies, and Mark B. Sandler. Separation of andrew@0: transient information in musical audio using multiresolution analysis andrew@0: techniques. In Proceedings of the Digital Audio Effects Conference, DAFx-01, andrew@0: pages 1­5, Limerick, Ireland, 2001. andrew@0: andrew@0: */ andrew@0: andrew@0: #ifndef TSS_H andrew@0: #define TSS_H andrew@0: andrew@0: #ifdef __cplusplus andrew@0: extern "C" { andrew@0: #endif andrew@0: andrew@0: /** TSS object */ andrew@0: typedef struct _aubio_tss_t aubio_tss_t; andrew@0: andrew@0: /** create tss object andrew@0: andrew@0: \param thrs separation threshold andrew@0: \param alfa alfa parameter andrew@0: \param beta beta parameter andrew@0: \param size buffer size andrew@0: \param overlap step size andrew@0: \param channels number of input channels andrew@0: andrew@0: */ andrew@0: aubio_tss_t * new_aubio_tss(smpl_t thrs, smpl_t alfa, smpl_t beta, andrew@0: ba_uint_t size, ba_uint_t overlap,ba_uint_t channels); andrew@0: /** delete tss object andrew@0: andrew@0: \param s tss object as returned by new_aubio_tss andrew@0: andrew@0: */ andrew@0: void del_aubio_tss(aubio_tss_t *s); andrew@0: andrew@0: /** set transient / steady state separation threshold andrew@0: andrew@0: \param tss tss object as returned by new_aubio_tss andrew@0: \param thrs new threshold value andrew@0: andrew@0: */ andrew@0: void aubio_tss_set_thres(aubio_tss_t *tss, smpl_t thrs); andrew@0: /** split input into transient and steady states components andrew@0: andrew@0: \param s tss object as returned by new_aubio_tss andrew@0: \param input input spectral frame andrew@0: \param trans output transient components andrew@0: \param stead output steady state components andrew@0: andrew@0: */ andrew@0: void aubio_tss_do(aubio_tss_t *s, cvec_t * input, cvec_t * trans, cvec_t * stead); andrew@0: andrew@0: #ifdef __cplusplus andrew@0: } andrew@0: #endif andrew@0: andrew@0: #endif /*TSS_H*/