annotate libs/aubioFullOSXUni/include/aubio/tss.h @ 2:fa2af670b5c5 tip

SoundFileLoader might have moved
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Fri, 06 Jan 2012 00:23:26 +0000
parents bcb0d40158f4
children
rev   line source
andrew@0 1 /*
andrew@0 2 Copyright (C) 2003 Paul Brossier
andrew@0 3
andrew@0 4 This program is free software; you can redistribute it and/or modify
andrew@0 5 it under the terms of the GNU General Public License as published by
andrew@0 6 the Free Software Foundation; either version 2 of the License, or
andrew@0 7 (at your option) any later version.
andrew@0 8
andrew@0 9 This program is distributed in the hope that it will be useful,
andrew@0 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
andrew@0 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
andrew@0 12 GNU General Public License for more details.
andrew@0 13
andrew@0 14 You should have received a copy of the GNU General Public License
andrew@0 15 along with this program; if not, write to the Free Software
andrew@0 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
andrew@0 17
andrew@0 18 */
andrew@0 19
andrew@0 20 /** \file
andrew@0 21
andrew@0 22 Transient / Steady-state Separation (TSS)
andrew@0 23
andrew@0 24 This file implement a Transient / Steady-state Separation (TSS) as described
andrew@0 25 in:
andrew@0 26
andrew@0 27 Christopher Duxbury, Mike E. Davies, and Mark B. Sandler. Separation of
andrew@0 28 transient information in musical audio using multiresolution analysis
andrew@0 29 techniques. In Proceedings of the Digital Audio Effects Conference, DAFx-01,
andrew@0 30 pages 1­5, Limerick, Ireland, 2001.
andrew@0 31
andrew@0 32 */
andrew@0 33
andrew@0 34 #ifndef TSS_H
andrew@0 35 #define TSS_H
andrew@0 36
andrew@0 37 #ifdef __cplusplus
andrew@0 38 extern "C" {
andrew@0 39 #endif
andrew@0 40
andrew@0 41 /** TSS object */
andrew@0 42 typedef struct _aubio_tss_t aubio_tss_t;
andrew@0 43
andrew@0 44 /** create tss object
andrew@0 45
andrew@0 46 \param thrs separation threshold
andrew@0 47 \param alfa alfa parameter
andrew@0 48 \param beta beta parameter
andrew@0 49 \param size buffer size
andrew@0 50 \param overlap step size
andrew@0 51 \param channels number of input channels
andrew@0 52
andrew@0 53 */
andrew@0 54 aubio_tss_t * new_aubio_tss(smpl_t thrs, smpl_t alfa, smpl_t beta,
andrew@0 55 ba_uint_t size, ba_uint_t overlap,ba_uint_t channels);
andrew@0 56 /** delete tss object
andrew@0 57
andrew@0 58 \param s tss object as returned by new_aubio_tss
andrew@0 59
andrew@0 60 */
andrew@0 61 void del_aubio_tss(aubio_tss_t *s);
andrew@0 62
andrew@0 63 /** set transient / steady state separation threshold
andrew@0 64
andrew@0 65 \param tss tss object as returned by new_aubio_tss
andrew@0 66 \param thrs new threshold value
andrew@0 67
andrew@0 68 */
andrew@0 69 void aubio_tss_set_thres(aubio_tss_t *tss, smpl_t thrs);
andrew@0 70 /** split input into transient and steady states components
andrew@0 71
andrew@0 72 \param s tss object as returned by new_aubio_tss
andrew@0 73 \param input input spectral frame
andrew@0 74 \param trans output transient components
andrew@0 75 \param stead output steady state components
andrew@0 76
andrew@0 77 */
andrew@0 78 void aubio_tss_do(aubio_tss_t *s, cvec_t * input, cvec_t * trans, cvec_t * stead);
andrew@0 79
andrew@0 80 #ifdef __cplusplus
andrew@0 81 }
andrew@0 82 #endif
andrew@0 83
andrew@0 84 #endif /*TSS_H*/