comparison Problems/generateAudioDeclippingProblem.m @ 140:31d2864dfdd4 ivand_dev

Audio Impainting additional constraints with cvx added
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 17:27:05 +0100
parents 9207d56c5547
children b14209313ba4
comparison
equal deleted inserted replaced
139:4bd6856a7128 140:31d2864dfdd4
1 function data = generateAudioDeclippingProblem(soundfile, clippingLevel, windowSize, overlap, wa, ws, wd, Dict_fun, redundancyFactor) 1 function data = generateAudioDeclippingProblem(soundfile, clippingLevel, windowSize, overlap, wa, ws, wd, Dict_fun, redundancyFactor)
2 %% Generate Audio Declipping Problem 2 %% Generate Audio Declipping Problem
3 % 3 %
4 % CHANGE!!!generateAMT_Learning_Problem is a part of the SMALLbox and generates 4 % generateAudioDeclippingProblem is part of the SMALLbox [1] and generates
5 % a problem that can be used for comparison of Dictionary Learning/Sparse 5 % Audio declipping is a problem proposed in Audio Inpaining Toolbox and
6 % Representation techniques in automatic music transcription scenario. 6 % in [2].
7 % The function prompts a user for an audio file (mid, wav, mat) reads it 7 %
8 % and generates a spectrogram given fft size (default nfft=4096), analysis 8 % [1] I. Damnjanovic, M. E. P. Davies, and M. P. Plumbley "SMALLbox - an
9 % window size (windowSize=2822), and analysis window overlap (overlap = 9 % evaluation framework for sparse representations and dictionary
10 % 0.5). 10 % learning algorithms," V. Vigneron et al. (Eds.): LVA/ICA 2010,
11 % 11 % Springer-Verlag, Berlin, Germany, LNCS 6365, pp. 418-425
12 % The output of the function is stucture with following fields: 12 % [2] A. Adler, V. Emiya, M. G. Jafari, M. Elad, R. Gribonval, and M. D.
13 % b - matrix with magnitudes of the spectrogram 13 % Plumbley, “Audio Inpainting,” submitted to IEEE Trans. Audio, Speech,
14 % f - vector of frequencies at wihch spectrogram is computed 14 % and Lang. Proc., 2011, http://hal.inria.fr/inria-00577079/en/.
15 % windowSize - analysis window size 15
16 % overlap - analysis window overlap
17 % fs - sampling frequency
18 % m - number of frequenciy points in spectrogram
19 % n - number of time points in the spectrogram
20 % p - number of dictionary elements to be learned (eg 88 for piano)
21 % notesOriginal - notes of the original audio to be used for
22 % comparison (if midi of the original exists)
23 % name - name of the audio file to transcribe
24 16
25 % Centre for Digital Music, Queen Mary, University of London. 17 % Centre for Digital Music, Queen Mary, University of London.
26 % This file copyright 2011 Ivan Damnjanovic. 18 % This file copyright 2011 Ivan Damnjanovic.
27 % 19 %
28 % This program is free software; you can redistribute it and/or 20 % This program is free software; you can redistribute it and/or