plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
rodrigo-garcia-leon/thesis-matlab-master
estimateCalibrationCoefficientDLM.m
.m
thesis-matlab-master/tb_PsySound32/Framework/utils/estimateCalibrationCoefficientDLM.m
4,441
utf_8
6e3b63e99724595ba778b1f4ebce9de7
function [calCoeff,RMS]=estimateCalibrationCoefficientDLM(calFileHandle,dBSPL) % author : Matt Flax <flatmax @ http://www.flatmax.org> : Matt Flax is flatmax % Matt Flax @ http://www.flatmaxstudios.com % March. 2007 : For the psysound.org project - a psychoacoustical analysis % package. % ...
github
rodrigo-garcia-leon/thesis-matlab-master
readData.m
.m
thesis-matlab-master/tb_PsySound32/Framework/utils/readData.m
8,539
utf_8
91ae43dc0951e60f0f09c5e3a51043c9
function [fileHandle, done] = readData(varargin) % READDATA Read Audio file data % FILEHANDLE = READDATA with no arguments will prompt the user % to select a file from the list of all supported types, converts % it to a WAV file and writes to a temp location % % FILEHANDLE = READDATA(FILENAME) initialises ...
github
rodrigo-garcia-leon/thesis-matlab-master
testanalysers.m
.m
thesis-matlab-master/tb_PsySound32/Framework/utils/test/testanalysers.m
3,384
utf_8
8c6e7c2d73f1e0a3b98bafe87c50a0b9
function testanalysers(filename) % TESTANALYSERS % % work through each output dataobject performing a few simple tests to % ensure each of them make sense. % Get list of variables in mat-file variables = whos('-file', filename); % load the file load(filename); for i = 1:length(variables)-1 cmd = strcat('get(' , v...
github
rodrigo-garcia-leon/thesis-matlab-master
testcals.m
.m
thesis-matlab-master/tb_PsySound32/Framework/utils/test/testcals.m
1,929
utf_8
6c53a1b4d203460288d4979ba41d5256
function testcals(filename, inputLevel) % TESTCALS % % work through each output dataobject performing a few simple tests to % ensure each of them make sense. % Get list of variables in mat-file variables = whos('-file', filename); % load the file load(filename); % dB Level for i = 1:length(variables)-1 cmd = str...
github
rodrigo-garcia-leon/thesis-matlab-master
mirattackslope.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirattackslope.m
2,391
utf_8
480b811e81baacefee9d19dfa75681b4
function varargout = mirattackslope(orig,varargin) % a = mirattackslope(x) estimates the average slope of each note attack. % Optional arguments: % a = mirattackslope(x,m) specifies a method for slope computation. % Possible values: % m = 'Diff': ratio between the magnitude difference at the % ...
github
rodrigo-garcia-leon/thesis-matlab-master
mirinharmonicity.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirinharmonicity.m
3,661
utf_8
d398d9221939306b6ace4776fc4a27d0
function varargout = mirinharmonicity(orig,varargin) % ih = mirinharmonicity(x) estimates the inharmonicity of x, i.e., the % amount of partials that are not multiples of the fundamental % frequency. % x can be either an audio file, a miraudio or a mirspectrum object. % WARNING: This function pres...
github
rodrigo-garcia-leon/thesis-matlab-master
mirtempo.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirtempo.m
14,161
utf_8
119045579351e84eb745223d1aac702e
function varargout = mirtempo(x,varargin) % t = mirtempo(x) evaluates the tempo in beats per minute (BPM). % Optional arguments: % mirtempo(...,'Total',m) selects not only the best tempo, but the m % best tempos. % mirtempo(...,'Frame',l,h) orders a frame decomposition of window % le...
github
rodrigo-garcia-leon/thesis-matlab-master
mirplay.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirplay.m
5,782
utf_8
ce5e1e782f92dd4c550ad7bcbb3bfd6d
function varargout = mirplay(a,varargin) % mirplay(a) plays audio signal, envelope, or pitches. % If a is an envelope, what is actually played is a white noise of % same envelope. % If a is a mirpitch object, pitches are played using sinusoids. % Optional arguments: % mirplay(...,'Channe...
github
rodrigo-garcia-leon/thesis-matlab-master
mirpeaks.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirpeaks.m
48,652
utf_8
b38274c573521ed6f7f15156055ad9b5
function varargout = mirpeaks(orig,varargin) % p = mirpeaks(x) detect peaks in x. % Optional argument: % mirpeaks(...,'Total',m): only the m highest peaks are selected. % If m=Inf, no limitation of number of peaks. % Default value: m = Inf % mirpeaks(...,'Order',o): specifies the...
github
rodrigo-garcia-leon/thesis-matlab-master
mirroughness.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirroughness.m
3,390
utf_8
69372991411816298ac0701ed59a976d
function varargout = mirroughness(x,varargin) % r = mirroughness(x) calculates the roughness, or sensory dissonance, % due to beating phenomenon between close frequency peaks. % The frequency components are supposed to remain sufficiently % constant throughout each frame of each audio file...
github
rodrigo-garcia-leon/thesis-matlab-master
mirstd.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirstd.m
2,348
utf_8
bd448049bf264e4092658cccfabdf692
function varargout = mirstd(f,varargin) % m = mirstd(f) returns the standard deviation along frames of the feature f % % f can be a structure array composed of features. In this case, % m will be structured the same way. if isa(f,'mirstruct') data = get(f,'Data'); for fi = 1:length(data) data{f...
github
rodrigo-garcia-leon/thesis-matlab-master
mirfeatures.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirfeatures.m
4,462
utf_8
432d47bb3fbc0b4e9a51eff6d98199e2
function r = mirfeatures(x,varargin) % f = mirfeatures(x) computes a large set of features from one or several % audio files. x can be either the name of an audio file, or the % 'Folder' keyword. % mirfeatures(...,'Stat') returns the statistics of the features instead % of the complete features th...
github
rodrigo-garcia-leon/thesis-matlab-master
mirfunction.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirfunction.m
7,063
utf_8
bbe417d16b478a7f8a4a029b27aa0fd7
function o = mirfunction(method,x,varg,nout,specif,init,main) % Meta function called by all MIRtoolbox functions. % Integrates the function into the general flowchart % and eventually launches the "mireval" evaluation process. % Here are the successive steps in the following code: % - If the input is an audio filen...
github
rodrigo-garcia-leon/thesis-matlab-master
mirframe.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirframe.m
10,327
utf_8
027dbbaf786a5255fbe0e09b0e971306
function [f x] = mirframe(x,varargin) % f = mirframe(x) creates the frame decomposition of the audio signal x. % (x can be a file name as well.) % Optional arguments: % mirframe(x,'Length',w,wu): % w is the length of the window in seconds (default: .05 seconds) % u is the unit, eithe...
github
rodrigo-garcia-leon/thesis-matlab-master
mirexport.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirexport.m
11,058
utf_8
71a9603fd38572ca961729b772631925
function m = mirexport(f,varargin) % mirexport(filename,...) exports statistical information related to % diverse data into a text file called filename. % mirexport('Workspace',...) instead directly output the statistical % information in a structure array saved in the Matlab workspace. % This s...
github
rodrigo-garcia-leon/thesis-matlab-master
mirrms.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirrms.m
1,791
utf_8
33118c56ce8e721c7b7f60d59dd2961d
function varargout = mirrms(x,varargin) % e = mirrms(x) calculates the root mean square energy. % Optional arguments: % mirrms(...,'Frame') computes the temporal evolution of the energy. % mirrms(...,'Root',0) does not apply the root operation to the mean % square energy. normal.key =...
github
rodrigo-garcia-leon/thesis-matlab-master
mirpulseclarity.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirpulseclarity.m
14,239
utf_8
e4b266f4cd12bfbcc96054ae42f926e4
function varargout = mirpulseclarity(orig,varargin) % r = mirpulseclarity(x) estimates the rhythmic clarity, indicating the % strength of the beats estimated by the mirtempo function. % Optional arguments: % mirpulseclarity(...,s): specifies a strategy for pulse clarity % estimation. % ...
github
rodrigo-garcia-leon/thesis-matlab-master
mirflatness.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirflatness.m
1,514
utf_8
5228c17ae6f4e0a0e9a832714b4dfd47
function varargout = mirflatness(orig,varargin) % f = mirflatness(x) calculates the flatness of x, which can be either: % - a spectrum (spectral flatness), % - an envelope (temporal flatness), or % - any histogram. varargout = mirfunction(@mirflatness,orig,varargin,nargout,struct,@init,@main); f...
github
rodrigo-garcia-leon/thesis-matlab-master
mirhcdf.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirhcdf.m
756
utf_8
83f037cac2a2562fb1a64b60f5826078
function varargout = mirhcdf(orig,varargin) % df = mirhcdf(x) calculates the Harmonic Change Detection Function % related to x. % % C. A. Harte and M. B. Sandler, Detecting harmonic change in musical % audio, in Proceedings of Audio and Music Computing for Multimedia % Workshop, Santa Barbara, CA, 2006. s...
github
rodrigo-garcia-leon/thesis-matlab-master
mirrolloff.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirrolloff.m
1,900
utf_8
5d51c7714eb15df02003ba9b419edc27
function varargout = mirrolloff(x,varargin) % r = mirrolloff(s) calculates the spectral roll-off in Hz. % Optional arguments: % r = mirrolloff(s,'Threshold',p) specifies the energy threshold in % percentage. (Default: .85) % p can be either a value between 0 and 1. But if p exceeds 1, it % ...
github
rodrigo-garcia-leon/thesis-matlab-master
mp3write.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mp3write.m
4,870
utf_8
ed9f8770422e95bc286ccb1f58acfe92
function mp3write(D,SR,NBITS,FILE,OPTIONS) % MP3WRITE Write MP3 file by use of external binary % MP3WRITE(Y,FS,NBITS,FILE) writes waveform data Y to mp3-encoded % file FILE at sampling rate FS using bitdepth NBITS. % The syntax exactly mirrors WAVWRITE. NBITS must be 16. % MP3WRITE(Y,FS,FILE) assumes N...
github
rodrigo-garcia-leon/thesis-matlab-master
aiffread.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/aiffread.m
20,801
utf_8
9f46fe07573112dfe1958161a768a9c9
function [data,Fs,nBits,formChunk] = aiffread(filePath,indexRange) %AIFFREAD Read AIFF (Audio Interchange File Format) sound file. % Y = AIFFREAD(FILE) reads an AIFF file specified by the string FILE, % returning the sampled data in Y. The ".aif" extension is appended if no % extension is given. % % [Y,FS,NBI...
github
rodrigo-garcia-leon/thesis-matlab-master
mireval.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mireval.m
13,341
utf_8
0a7bf01377c125343d54e3c974c4664f
function v = mireval(d,file,single,export) % mireval(d,filename) applies the mirdesign object d to the audio file % named filename. % mireval(d,'Folder') applied the mirdesign object to each audio files in % the current directory. % mireval(d,'Folders') applied the mirdesign object recursively to the ...
github
rodrigo-garcia-leon/thesis-matlab-master
mirmode.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirmode.m
1,198
utf_8
bd81e52e237fecf41945466d4d8b4f8f
function varargout = mirmode(x,varargin) % m = mirmode(a) estimates the mode. A value of 0 indicates a complete % incertainty, whereas a positive value indicates a dominance of % major mode and a negative value indicates a dominance of minor mode. % Optional arguments: % mirmode(a,s) specifies a strat...
github
rodrigo-garcia-leon/thesis-matlab-master
mirstat.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirstat.m
8,336
utf_8
b095df8141f86e3ba1f19c9a49f92ef4
function varargout = mirstat(f,varargin) % stat = mirstat(f) returns basic statistics of the feature f as a % structure array stat such that: % stat.Mean is the mean of the feature; % stat.Std is the standard deviation; % stat.Slope is the linear slope of the curve; % stat.PeriodFreq is the fr...
github
rodrigo-garcia-leon/thesis-matlab-master
mirlength.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirlength.m
1,393
utf_8
21e35d00ed2dbfaa0e4a83a2165a1f2f
function varargout = mirlength(orig,varargin) % mirlength(x) indicates the temporal length of x. % If x is decomposed into frames, % mirlength(x) indicates the frame length, whereas % mirlength(x,'Global') indicates the total temporal spanning of the % frame decomposition. % Optional argum...
github
rodrigo-garcia-leon/thesis-matlab-master
mirzerocross.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirzerocross.m
2,348
utf_8
c52f764fa050e3a8a07a6de0c513c1d0
function varargout = mirzerocross(orig,varargin) % mirzeroscross(x) computes the sign-changes rate along the signal x, % i.e., how many time the waveform crosses the X-axis. When applied on % an audio waveform, gives a notion of noise. % Optional argument: % mirzerocross(...,'Per',p) precises the ...
github
rodrigo-garcia-leon/thesis-matlab-master
mp3read.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mp3read.m
10,042
utf_8
b9f324958abafbb448a3a23130894da3
function [Y,FS,NBITS,OPTS] = mp3read(FILE,N,MONO,DOWNSAMP,DELAY) % MP3READ Read MP3 audio file via use of external binaries. % Y = MP3READ(FILE) reads an mp3-encoded audio file into the % vector Y just like wavread reads a wav-encoded file (one channel % per column). Extension ".mp3" is added if FILE has ...
github
rodrigo-garcia-leon/thesis-matlab-master
convolve2.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/convolve2.m
7,776
utf_8
3946f147a02830e1954206f3fd2e961b
function y = convolve2(x, m, shape, tol) %CONVOLVE2 Two dimensional convolution. % Y = CONVOLVE2(X, M) performs the 2-D convolution of matrices X and % M. If [mx,nx] = size(X) and [mm,nm] = size(M), then size(Y) = % [mx+mm-1,nx+nm-1]. Values near the boundaries of the output array are % calculated as if X was s...
github
rodrigo-garcia-leon/thesis-matlab-master
mirkurtosis.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirkurtosis.m
1,096
utf_8
3debc7081f6f0832cc47679a514e2327
function varargout = mirkurtosis(orig,varargin) % k = mirkurtosis(x) calculates the kurtosis of x, indicating whether % the curve is peaked or flat relative to a normal distribution. % x can be either: % - a spectrum (spectral kurtosis), % - an envelope (temporal kurtosis), or % - any histog...
github
rodrigo-garcia-leon/thesis-matlab-master
mirflux.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirflux.m
8,439
utf_8
70ff4a74015f80acad498a17b657899e
function varargout = mirflux(orig,varargin) % f = mirflux(x) measures distance between successive frames. % First argument: % If x is a spectrum, this corresponds to spectral flux. % But the flux of any other data can be computed as well. % If x is an audio file or audio signal, the spectral flux ...
github
rodrigo-garcia-leon/thesis-matlab-master
isamir.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/isamir.m
1,010
utf_8
9284a4ea4a0c048ce4ff9e16c746bbcc
function b = isamir(x,class) if isempty(x) || isnumeric(x) b = 0; return end if iscell(x) x = x{1}; end if isa(x,class) b = 1; return elseif ischar(x) && strcmpi(class,'miraudio') b = 1; return elseif not(isa(x,'mirdesign')) b = 0; return end type = get(x,'Type'); if iscell(type)...
github
rodrigo-garcia-leon/thesis-matlab-master
mirskewness.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirskewness.m
1,058
utf_8
4825253ee733d88a4d493c7f6d703a1c
function varargout = mirskewness(orig,varargin) % s = skewness(x) calculates the skewness of x, showing the (lack of) % symmetry of the curve. % x can be either: % - a spectrum (spectral skewness), % - an envelope (temporal skewness), or % - any histogram. varargout = mirfunction(@mirskewn...
github
rodrigo-garcia-leon/thesis-matlab-master
mirfilterbank.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirfilterbank.m
9,887
utf_8
77b370bda3c785b7b999cf4ad1213433
function varargout = mirfilterbank(orig,varargin) % b = mirfilterbank(x) performs a filterbank decomposition of an audio % waveform. % Optional arguments: % mirfilterbank(...,t) selects a type of filterbank. % Possible values: % t = 'Gammatone' (default for audio files). % ...
github
rodrigo-garcia-leon/thesis-matlab-master
pluscell.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/pluscell.m
271
utf_8
4b18198163a886e445d0b3b1f88a2f50
function varargout = pluscell(x,varargin) specif.combinechunk = 'Average'; varargout = mirfunction(@pluscell,x,varargin,nargout,specif,@init,@main); function [x type] = init(x,option) type = mirtype(a{1}); function y = main(x,option,postoption) y = plus(x{1},x{2});
github
rodrigo-garcia-leon/thesis-matlab-master
mtimescell.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mtimescell.m
277
utf_8
77d174f26c270bf0a8697dec0f49668e
function varargout = mtimescell(x,varargin) specif.combinechunk = 'Average'; varargout = mirfunction(@mtimescell,x,varargin,nargout,specif,@init,@main); function [x type] = init(x,option) type = mirtype(x{1}); function y = main(x,option,postoption) y = mtimes(x{1},x{2});
github
rodrigo-garcia-leon/thesis-matlab-master
mirbeatspectrum.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirbeatspectrum.m
2,442
utf_8
e46e1587b3515de78fab635331f89a08
function varargout = mirbeatspectrum(orig,varargin) % n = mirbeatspectrum(m) evaluates the beat spectrum. % [n,m] = mirbeatspectrum(m) also return the similarity matrix on which % the estimation is made. % Optional argument: % mirbeatspectrum(...,s) specifies the estimation method. % Possib...
github
rodrigo-garcia-leon/thesis-matlab-master
mirsegment.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirsegment.m
14,959
utf_8
25a435bf2b0973f4fb24cdf35c44c1c3
function [f,p,m,fe] = mirsegment(x,varargin) % f = mirsegment(a) segments an audio signal. It can also be the name of an % audio file or 'Folder', for the analysis of the audio files in the % current folder. The segmentation of audio signal already decomposed % into frames is not available for the m...
github
rodrigo-garcia-leon/thesis-matlab-master
mircentroid.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mircentroid.m
2,118
utf_8
74377f1661b6a628ef610c7c774f89b7
function varargout = mircentroid(x,varargin) % c = mircentroid(x) calculates the centroid (or center of gravity) of x. % x can be either: % - a spectrum (spectral centroid), % - an envelope (temporal centroid) % - a histogram, % - or any data. Only the positive ordinates of the data are take...
github
rodrigo-garcia-leon/thesis-matlab-master
mirbrightness.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirbrightness.m
1,877
utf_8
760595f164d5043f2469c1ac21019699
function varargout = mirbrightness(x,varargin) % b = mirbrightness(s) calculates the spectral brightness, i.e. the amount % of spectral energy corresponding to frequencies higher than a given % cut-off threshold. % Optional arguments: % b = mirbrightness(s,'CutOff',f) specifies the frequency cut-off ...
github
rodrigo-garcia-leon/thesis-matlab-master
nthoutput.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/nthoutput.m
416
utf_8
891acb2b288ea723dca0b6b85e1f72cf
function varargout = nthoutput(orig,varargin) nth.type = 'Integer'; nth.default = 1; nth.position = 2; option.nth = nth; specif.option = option; varargout = mirfunction(@nthoutput,orig,varargin,nargout,specif,@init,@main); function [x type] = init(x,option) type = mirtype(x); type = type...
github
rodrigo-garcia-leon/thesis-matlab-master
mirmap.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirmap.m
8,890
utf_8
202a1466bc6c2497cf3216be9c7f8cbc
function res = mirmap(predics_ref,ratings_ref,dist,alpha,delta) % mirmap(predictors_file, ratings_file) performs a statistical mapping % between ratings associated to a set of audio recordings, and a set of % variables computed for the same set of audio recordings. It might be % useful in particular when the set ...
github
rodrigo-garcia-leon/thesis-matlab-master
mirsum.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirsum.m
5,236
utf_8
780693702f51b8a0123b5d14471e413d
function varargout = mirsum(orig,varargin) % s = mirsum(f) sums the envelope of the multi-channel object f. % % Optional arguments: % mirsum(f,'Centered') centers the resulting envelope. % mirsum(f,'Mean') divides the summation by the number of channels. % mirsum(f,'Weights')... c.key = ...
github
rodrigo-garcia-leon/thesis-matlab-master
mironsets.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mironsets.m
21,132
utf_8
7871030ff79198d763975fed1ed5ee6a
function varargout = mironsets(x,varargin) % o = mironsets(x) shows a temporal curve where peaks relate to the % position of note onset times, and estimates those note onset % positions. % Optional arguments: % mironsets(...,f) selects the strategy for the computation of the % onset de...
github
rodrigo-garcia-leon/thesis-matlab-master
mirspread.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirspread.m
912
utf_8
2a6eb3d3ede8e195d87a485352726c1b
function varargout = mirspread(orig,varargin) % S = mirspread(x) calculates the spread of x, which can be either: % - a spectrum (spectral spread), % - an envelope (temporal spread), or % - any histogram. varargout = mirfunction(@mirspread,orig,varargin,nargout,struct,@init,@main); function [x t...
github
rodrigo-garcia-leon/thesis-matlab-master
mirread.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirread.m
3,824
utf_8
1a4970610346eafe5620043690b52880
function [d,tp,fp,f,l,b,n,ch] = mirread(extract,orig,load,folder,verbose) % Read the audio file ORIG, at temporal position indicated by EXTRACT. If % EXTRACT is empty, all the audio file is loaded. % If LOAD is set to 0, just the meta-data is collected, and the actual % audio data is not taken into consideratio...
github
rodrigo-garcia-leon/thesis-matlab-master
mirregularity.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirregularity.m
3,324
utf_8
70fbd83568c0298bdb4eb4e09a40f8c2
function varargout = mirregularity(orig,varargin) % i = mirregularity(x) calculates the irregularity of a spectrum, i.e., % the degree of variation of the successive peaks of the spectrum. % Specification of the definition of irregularity: % mirregularity(...,'Jensen') is based on (Jensen, 1999), % ...
github
rodrigo-garcia-leon/thesis-matlab-master
mireventdensity.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mireventdensity.m
2,793
utf_8
1947a1a3694af08a36e5b71de6d9bd5f
function varargout = mireventdensity(x,varargin) % e = mireventdensity(x) estimate the mean frequency of events (i.e., how % many note onsets per second) in the temporal data x. % Optional arguments: Option1, Option2 % Tuomas Eerola, 14.08.2008 % normal.type = 'String'; normal.choice = {'Opti...
github
rodrigo-garcia-leon/thesis-matlab-master
mirentropy.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirentropy.m
1,586
utf_8
6a5fa0f39930416e0603593e069c4239
function varargout = mirentropy(x,varargin) % h = mirentropy(a) calculates the relative entropy of a. % (Cf. User's Manual.) % mirentropy(..., ?Center?) centers the input data before % transforming it into a probability distribution. center.key = 'Center'; center.type = 'Boolean'; c...
github
rodrigo-garcia-leon/thesis-matlab-master
mirnovelty.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirnovelty.m
5,649
utf_8
2380d09da4f258f3c9ba22b7f855ba7c
function varargout = mirnovelty(orig,varargin) % n = mirnovelty(m) evaluates the novelty score from a similarity matrix. % [n,m] = mirnovelty(m) also return the similarity matrix. % Optional argument: % mirnovelty(...,'Distance',f) specifies the name of a dissimilarity % distance function, from t...
github
rodrigo-garcia-leon/thesis-matlab-master
mirauditory.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirauditory.m
770
utf_8
9e222a34c1f8d97aef449166d6e18b78
function varargout = mirauditory(x,varargin) % Produces the output based on an auditory modelling, of the signal x, % using a gammatone filterbank. % Optional argument: % mirtempo(...,'Filterbank',b) indicates the number of channels in % the filterbank decomposition. % Default value: b =...
github
rodrigo-garcia-leon/thesis-matlab-master
mirlowenergy.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirlowenergy.m
2,616
utf_8
1a44d6bcf154d129b54a3a03dfc7af28
function varargout = mirlowenergy(x,varargin) % p = mirlowenergy(f) computes the percentage of frames showing a RMS % energy that is lower than a given threshold. % For instance, for a musical excerpt with some very loud frames and % lots of silent frames, we would get a high low-energy rate. % Opt...
github
rodrigo-garcia-leon/thesis-matlab-master
mirmean.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirmean.m
2,965
utf_8
8a540a914bff18624cf438305a32db22
function varargout = mirmean(f,varargin) % m = mirmean(f) returns the mean along frames of the feature f % % f can be a structure array composed of features. In this case, % m will be structured the same way. if isa(f,'mirstruct') data = get(f,'Data'); for fi = 1:length(data) data{fi} = mirmean...
github
rodrigo-garcia-leon/thesis-matlab-master
mirattacks.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirattacks.m
469
utf_8
3bed2578be388cb7cc56cbfedd5565b4
function varargout = mirattacks(orig,varargin) % Obsolete function, replaced by mironsets(...,'Attacks',...) aver.key = 'Smooth'; aver.type = 'Integer'; aver.default = 20; option.aver = aver; specif.option = option; varargout = mirfunction(@mirattacks,orig,varargin,nargout,specif,...
github
rodrigo-garcia-leon/thesis-matlab-master
mirkey.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/MirToolbox Functions/mirkey.m
1,998
utf_8
5fe99cbe0e09716f81aedf4ef572a1a1
function varargout = mirkey(orig,varargin) % k = mirkey(x) estimates the key. % Optional argument: % mirkey(...,'Total',m) selects not only the most probable key, but % the m most probable keys. % The other parameter 'Contrast' related to mirpeaks can be specified % here (see help m...
github
rodrigo-garcia-leon/thesis-matlab-master
evaleach.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirdesign/evaleach.m
30,290
utf_8
ae05a004e5826ef73c418e85c78144f4
function [y d2] = evaleach(d,single,name) % Top-down traversal of the design flowchart, at the beginning of the % evaluation phase. % Called by mirfunction, mireval, mirframe and mirsegment. % This is during that traversal that we check whether a chunk decomposition % needs to be performed or not, and carry out that ch...
github
rodrigo-garcia-leon/thesis-matlab-master
plus.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirdesign/plus.m
159
utf_8
4c83543fc53f3b9d77b3dea756c818b3
function varargout = plus(a,b) varargout = mirfunction(@pluscell,{a,b},{},1,struct,@init,@plus); function [x type] = init(x,option) type = get(x{1},'Type');
github
rodrigo-garcia-leon/thesis-matlab-master
getMir.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirdesign/getMir.m
3,555
utf_8
18c0494c2cde5500de57c3513d5cc0bd
function varargout = getMir(a,varargin) % GET Get properties from the MIRdesign object and return the value if ischar(varargin{1}) switch varargin{1} case 'Method' varargout = {a.method}; return case 'File' varargout = {a.file}; return case 'F...
github
rodrigo-garcia-leon/thesis-matlab-master
mtimes.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirdesign/mtimes.m
169
utf_8
91a0abb2d0c449aeac1669a109b4cc06
function varargout = mtimes(a,b) varargout = mirfunction(@mtimescell,{a,b},{},1,struct,@init,@mtimescell); function [x type] = init(x,option) type = get(x{1},'Type');
github
rodrigo-garcia-leon/thesis-matlab-master
mirspectrum.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirspectrum/mirspectrum.m
28,904
utf_8
1f447d4aa6c1ecede40cb40982cd52a9
function varargout = mirspectrum(orig,varargin) % s = mirspectrum(x) computes the spectrum of the audio signal x, showing % the distribution of the energy along the frequencies. % (x can be the name of an audio file as well.) % Optional argument: % mirspectrum(...,'Frame',l,h) computes spectrogram...
github
rodrigo-garcia-leon/thesis-matlab-master
getDescription.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@AutoCorrelation/getDescription.m
617
utf_8
5777e371efea5760b0ed66545388df3f
function cells = getDescription(obj) % GETDESCRIPTION Returns a text string of the description cells = {'Performs successive auto-correlations ', ... 'of the input wave.', ... 'Auto-correlations are linear (not circular). ', ... 'Each auto-correlation function is normalised, ', ... 'so results...
github
rodrigo-garcia-leon/thesis-matlab-master
constructDataObjects.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@AutoCorrelation/constructDataObjects.m
2,620
utf_8
247e2ef2b1d1e766c7a9d0d0908c81ee
function obj = constructDataObjects(obj, dataBuffer, TimePoints) % CONSTRUCTDATAOBJECTS Constructs the appropriate data objects % % Analogous to assignoutputs % % Convenience variables N = get(obj, 'windowLength'); fs = get(obj, 'fs'); lagsListing = [0:(1/fs):(N/fs)]'; lagsListing = lagsListing(1:ceil(end/2)); % G...
github
rodrigo-garcia-leon/thesis-matlab-master
ui.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@FFT/ui.m
8,527
utf_8
26957fd0084aa298f3a637be32233ff3
function ui(obj, parent) % Sets up the ui for the FFT Analyser. % usage: ui(FFT, parent) % % We rely on picking up the Tag of the uicontrol objects later, so we only % set them up, we don't return handles to each of them. We can get the handles % again in the settings method with handle = findobj('Tag','YourTagHere'...
github
rodrigo-garcia-leon/thesis-matlab-master
ui.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@CZT/ui.m
8,321
utf_8
0229572a8935ab720dcab19e2f86c424
function ui(obj, parent) % Sets up the ui for the CZT Analyser. % usage: ui(CZT, parent) % % We rely on picking up the Tag of the uicontrol objects later, so we only % set them up, we don't return handles to each of them. We can get the handles % again in the settings method with handle = findobj('Tag','YourTagHere'...
github
rodrigo-garcia-leon/thesis-matlab-master
mircepstrum.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mircepstrum/mircepstrum.m
5,323
utf_8
b527e3d6bf5c706f3a98f50041735a0e
function varargout = mircepstrum(orig,varargin) % s = mircepstrum(x) computes the cepstrum, which indicates % periodicities, and is used for instance for pitch detection. % x can be either a spectrum, an audio signal, or the name of an audio file. % Optional parameter: % mircepstrum(...,'Min',min) spe...
github
rodrigo-garcia-leon/thesis-matlab-master
processWindow.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@ThirdOctaveBand/processWindow.m
4,108
utf_8
0b43d2ababeded61b393e3e85d520062
function dataOut = processWindow(obj, dataIn) % PROCESSWINDOW This is the core workhorse of this analyser % % We are using raw mode - the whole file to be analysed is stored % in dataIn. if dataIn == 1 dataOut = 1; return; end fs = get(obj, 'fs'); lab_freq = [100 125 160 200 250 315 400 500 630 800 1000 1250 16...
github
rodrigo-garcia-leon/thesis-matlab-master
bp_filter_signal.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@ThirdOctaveBand/private/bp_filter_signal.m
656
utf_8
b1293e23b1bf1b98541f8878f1e28388
% function sig_out = bp_filter_signal(cutoff, Fs, sig, number_cascade); % % creates chebyshev type I bandpass filter with cutoff frequencies defined function sig_out = bp_filter_signal(cutoff, Fs, sig, N) w_low = cutoff(1)/(Fs/2); w_high = cutoff(2)/(Fs/2); [num, den] = cheby1(N, 0.5, [w_low w_high]); % draw bode pl...
github
rodrigo-garcia-leon/thesis-matlab-master
processWindow.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@CPBFFT/processWindow.m
1,953
utf_8
3be2104e7691f634b6cb934e836f1b57
function dataOut = processWindow(obj, dataIn) % PROCESSWINDOW This is the core workhorse of this analyser % % NOTE: Every window is the same size and comes appropriately % zero-padded both in front and at rear, whenever neccessary, % and so that is why the following is just a straightforward % call. ...
github
rodrigo-garcia-leon/thesis-matlab-master
ui.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@CPBFFT/ui.m
7,165
utf_8
1a5beccd87fcdf2348b6bf0de44b040c
function ui(obj, parent) % Sets up the ui for the CPBFFT Analyser. % usage: ui(FFT, parent) % % We rely on picking up the Tag of the uicontrol objects later, so we only % set them up, we don't return handles to each of them. We can get the handles % again in the settings method with handle = findobj('Tag','YourTagHe...
github
rodrigo-garcia-leon/thesis-matlab-master
mirautocor.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirautocor/mirautocor.m
23,424
utf_8
260f2b7984113950e563007918870f43
function varargout = mirautocor(orig,varargin) % a = mirautocor(x) computes the autocorrelation function related to x. % Optional parameters: % mirautocor(...,'Min',mi) indicates the lowest delay taken into % consideration. The unit can be precised: % mirautocor(...,'Min',mi,'s') (defa...
github
rodrigo-garcia-leon/thesis-matlab-master
processWindow.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@TwelfthOctConstQ/processWindow.m
1,540
utf_8
60c0895b3c517108df363a78e2260ea1
function dataOut = processWindow(obj, dataIn) % PROCESSWINDOW This is the core workhorse of this analyser % % NOTE: Every window is the same size and comes appropriately % zero-padded both in front and at rear, whenever neccessary, % and so that is why the following is just a straightforward % call. ...
github
rodrigo-garcia-leon/thesis-matlab-master
ui.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@TwelfthOctConstQ/ui.m
7,235
utf_8
9e2f47a60e4d770752ff06e6d9b65bde
function ui(obj, parent) % Sets up the ui for the CPBFFT Analyser. % usage: ui(FFT, parent) % % We rely on picking up the Tag of the uicontrol objects later, so we only % set them up, we don't return handles to each of them. We can get the handles % again in the settings method with handle = findobj('Tag','YourTagHe...
github
rodrigo-garcia-leon/thesis-matlab-master
ui.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@CepstrumComplex/ui.m
7,038
utf_8
177cb957d2f76e4ac27beeb7d833e9d4
function ui(obj, parent) % Sets up the ui for the FFT Analyser. % usage: ui(FFT, parent) % % We rely on picking up the Tag of the uicontrol objects later, so we only % set them up, we don't return handles to each of them. We can get the handles % again in the settings method with handle = findobj('Tag','YourTagHere'...
github
rodrigo-garcia-leon/thesis-matlab-master
signal.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@LoudnessCF/private/signal.m
2,457
utf_8
7412f03746ac6a97e82950fce171b192
% constructor of class @signal % parent class: none % function sig=signal(length,samplerate,name,unit_x,unit_y,start_time) % INPUT VALUES: % length: length of signal in seconds [default 1] % samplerate: samplerate in Hz (points per seconds) [default: 1000] % name: display name of the signal (string...
github
rodrigo-garcia-leon/thesis-matlab-master
display.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirscalar/display.m
15,268
utf_8
40d6b7b93c2b24babd318a07e161437e
function display(s,varargin) % Section 1 : related to the class Analyser % (Mir adapted for Psysound3) % % Print the name % fprintf('\n%s Object\n\n', class(s)); % % % Name % fprintf(' Name\t\t : %s\n', get(s,'Name')); % % % filename % fprintf(' filename\t : ''%s''\n', s.filename); % % % fs % fprintf(' fs\t\t ...
github
rodrigo-garcia-leon/thesis-matlab-master
mirsave.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirscalar/mirsave.m
1,826
utf_8
1c310a1c6b67eb105baef4f34bb10743
function mirsave(a) d = get(a,'Data'); n = get(a,'Name'); t = get(a,'Title'); c = get(a,'Channels'); fp = get(a,'FramePos'); out = cell(1,length(d)); for k = 1:length(d) dk = d{k}; if not(iscell(dk)) dk = {dk}; end out = []; for l = 1:size(dk{1},3) for i = 1:length(dk) ...
github
rodrigo-garcia-leon/thesis-matlab-master
mirdisplay.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirdata/mirdisplay.m
5,703
utf_8
c82eea521bfcd38792e6de59e439a887
function mirdisplay(d,varargin) % DISPLAY Lists the fields of this object % Section 1 : related to the class Analyser % (Mir adapted for Psysound3) % Print the name fprintf('\n%s Object\n\n', class(d)); % Name n=get(d,'Name'); fprintf(' Name\t\t : %s\n', n); % filename f=get(d,'filename'); fprintf(' filename\...
github
rodrigo-garcia-leon/thesis-matlab-master
mirdata.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirdata/mirdata.m
5,048
utf_8
faed74fba649d717512eb8839ed96e63
function obj = mirdata(orig,varargin) % d = mirdata(x) creates a MIR object. % mirdata Constructor %for the Psysound-style classes (adapted from MirToolbox) obj = struct; switch nargin case 1 arg1 = orig; if isstruct(arg1) % Copy Constructor % This should be a file handle base = Ana...
github
rodrigo-garcia-leon/thesis-matlab-master
combine.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@mirdata/combine.m
2,415
utf_8
c56b6fe271fdcfbe9ca0b74541f3eb46
function c = combine(varargin) c = varargin{1}; l = length(varargin); p = cell(1,l); ch = cell(1,l); d = cell(1,l); fp = cell(1,l); sr = cell(1,l); n = cell(1,l); la = cell(1,l); cl = cell(1,l); pp = cell(1,l); pm = cell(1,l); pv = cell(1,l); ppp = cell(1,l); ppv = cell(1,l); tp = cell(1,l); tv = cell(1,l); tpp = cell...
github
rodrigo-garcia-leon/thesis-matlab-master
miraudio.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@miraudio/miraudio.m
14,101
utf_8
8dfd248a78ebba48c3a43a0bf9f51fd7
function varargout = miraudio(orig,varargin) % a = miraudio('filename') loads the sound file 'filename' (in WAV or AU % format) into a miraudio object. % a = miraudio('Folder') loads all the sound files in the CURRENT folder % into a miraudio object. % a = miraudio(v,sr), where v is a column vector, t...
github
rodrigo-garcia-leon/thesis-matlab-master
mirplay.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@miraudio/mirplay.m
3,092
utf_8
29c6db8b15df3945dda9d054d80603eb
function varargout = mirplay(a,varargin) % mirplay method for miraudio objects. Help displayed in ../mirplay.m ch.key = 'Channel'; ch.type = 'Integer'; ch.default = 0; option.ch = ch; sg.key = 'Segment'; sg.type = 'Integer'; sg.default = 0; option.sg = ...
github
rodrigo-garcia-leon/thesis-matlab-master
settings.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@MIRPITCH/settings.m
3,292
utf_8
66c62f447462fb54365f2ba24ef50814
function [ obj, fh ] = settings(obj ,fh ) %SETTINGS Summary of this function goes here % Detailed explanation goes here MirOptionStr = getMirOptions(obj); obj = set(obj,'OptionStr',MirOptionStr); [Frame, Name] = getMirPlotType(obj); obj = setMir(obj,'Frame',Frame); obj = setMir(obj,'SpectrumType',Name); end func...
github
rodrigo-garcia-leon/thesis-matlab-master
constructDataObjects.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@MIRPITCH/constructDataObjects.m
5,542
utf_8
bf78b80914fc19d1fa18a6f6c40e575f
function obj = constructDataObjects(obj, dataBuffer, timePoints) % CONSTRUCTDATAOBJECTS Constructs the appropriate data objects % % Analogous to assignoutputs % % Get the pitch and autocorrelation data ac = dataBuffer{1}; p = dataBuffer{2}; % Get the frame position data fp = dataBuffer{3}; % Get the frequency data ...
github
rodrigo-garcia-leon/thesis-matlab-master
ui.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@MIRPITCH/ui.m
12,107
utf_8
13fef4c4c76c797ec6e9888591064e34
function ui(obj, parent) % Sets up the ui for the FFT Analyser. % usage: ui(FFT, parent) % % We rely on picking up the Tag of the uicontrol objects later, so we only % set them up, we don't return handles to each of them. We can get the handles % again in the settings method with handle = findobj('Tag','YourTagHere'...
github
rodrigo-garcia-leon/thesis-matlab-master
mirinharmonicity.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@MIRPITCH/private/mirinharmonicity.m
3,661
utf_8
d398d9221939306b6ace4776fc4a27d0
function varargout = mirinharmonicity(orig,varargin) % ih = mirinharmonicity(x) estimates the inharmonicity of x, i.e., the % amount of partials that are not multiples of the fundamental % frequency. % x can be either an audio file, a miraudio or a mirspectrum object. % WARNING: This function pres...
github
rodrigo-garcia-leon/thesis-matlab-master
mirroughness.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@MIRPITCH/private/mirroughness.m
3,390
utf_8
69372991411816298ac0701ed59a976d
function varargout = mirroughness(x,varargin) % r = mirroughness(x) calculates the roughness, or sensory dissonance, % due to beating phenomenon between close frequency peaks. % The frequency components are supposed to remain sufficiently % constant throughout each frame of each audio file...
github
rodrigo-garcia-leon/thesis-matlab-master
mirpitch.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@MIRPITCH/private/mirpitch.m
13,702
utf_8
d5fb0d009d5aaa1d3e848bc65d24c9e3
function varargout = mirpitch(orig,varargin) % p = mirpitch(x) evaluates the pitch frequencies (in Hz). % Specification of the method(s) for pitch estimation (these methods can % be combined): % mirpitch(...,'Autocor') computes an autocorrelation function % (Default method) % mirpitc...
github
rodrigo-garcia-leon/thesis-matlab-master
MGLoudnessPsySound.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@LoudnessMG/private/MGLoudnessPsySound.m
16,883
utf_8
49e31181aa4d518750b3291dda1b0918
function [Loudness,SpecLoudness,SharpnessA,SharpnessZ,TimbralWidth,Volume,DissonanceHK,DissonanceS,SpectDissHK,SpectDissS,Esig] = MGLoudnessPsySound(signal,SR,POINTS,Field) %% Direct Port of Densil's Loudness and Dissonance Code % % Needs lots of vectorisation if length(signal) == 1 Loudness = 4096; return; end %...
github
rodrigo-garcia-leon/thesis-matlab-master
processWindow.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@TwelfthOctIECFFT/processWindow.m
2,055
utf_8
769909746f8db71354cc895cde1099f8
function dataOut = processWindow(obj, dataIn) % PROCESSWINDOW This is the core workhorse of this analyser % % NOTE: Every window is the same size and comes appropriately % zero-padded both in front and at rear, whenever neccessary, % and so that is why the following is just a straightforward % call. ...
github
rodrigo-garcia-leon/thesis-matlab-master
ui.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@TwelfthOctIECFFT/ui.m
7,165
utf_8
1a5beccd87fcdf2348b6bf0de44b040c
function ui(obj, parent) % Sets up the ui for the CPBFFT Analyser. % usage: ui(FFT, parent) % % We rely on picking up the Tag of the uicontrol objects later, so we only % set them up, we don't return handles to each of them. We can get the handles % again in the settings method with handle = findobj('Tag','YourTagHe...
github
rodrigo-garcia-leon/thesis-matlab-master
swipep.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@SWIPEP/private/swipep.m
5,556
utf_8
127f27249902b5bed961814ba6c5b90e
% This is the SWIPE' code by Arturo Camacho % http://www.cise.ufl.edu/~acamacho/publications/dissertation.pdf % [ 1 primes(n) ] in the for loop of the function pitchStrengthOneCandidate with [ 1:n ]. function [p,t,s] = swipep(x,fs,plim,dt,dlog2p,dERBs,sTHR) % SWIPEP Pitch estimation using SWIPE'. % P = SWIPEP(X,...
github
rodrigo-garcia-leon/thesis-matlab-master
swipe.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@SWIPEP/private/swipe.m
5,540
utf_8
2d19fbb5dfaa820b0ab2532b3d9a15f8
% This is the SWIPE code by Arturo Camacho % http://www.cise.ufl.edu/~acamacho/publications/dissertation.pdf % [ 1 primes(n) ] in the for loop of the function pitchStrengthOneCandidate with [ 1:n ]. function [p,t,s] = swipe(x,fs,plim,dt,dlog2p,dERBs,sTHR) % SWIPE Pitch estimation using SWIPE. % P = SWIPE(X,Fs,[P...
github
rodrigo-garcia-leon/thesis-matlab-master
processWindow.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@VirtualPitch/processWindow.m
2,848
utf_8
b9854672ab4d63fb3969920ad743f9fa
function dataOut = processWindow(obj, dataIn) % PROCESSWINDOW This is the core workhorse of this analyser % % Sampling rate fs = get(obj, 'fs'); % make frequencies from 440 - midi notes %%%% This is set up for equal temperament, but COULD be changed %%%% for other temperament schemes here. i = -68:47; notes = log2(...
github
rodrigo-garcia-leon/thesis-matlab-master
terhardtVPitch.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@VirtualPitch/private/terhardtVPitch.m
4,000
utf_8
eab70b3c40a3e30cf5b3077b0be6e86f
function [vPitch, sPitch] = terhardtVPitch(fs, data, varargin) % TERHARDTVPITCH % % fs - sample rate % data - power spectrum % varargin - this is just to get the window length lowerLimitHz = 20; % 20Hz lower freq. limit upperLimitHz = 5e3;% 5kHz upper freq. limit. % Output variables vPitch=[]; sPitch=[]; % if run...
github
rodrigo-garcia-leon/thesis-matlab-master
PitchProfile.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@VirtualPitch/private/PitchProfile.m
16,710
utf_8
13d742f31b9807772977fc1c307be2dd
function [chord2,cLH,ChrdChTimes,chroTSpec] = PitchProfile(Salience,timePoints,order) % PITCHPROFILE find the pitch profile and apply chord recognition % Wrapper around FindChord [r,c] = size(Salience); Salience = [zeros(r,3) Salience]; Salience(:,120)= zeros(r,1); for i = 1:r chromata = reshape(Salience(i,:)',12,...
github
rodrigo-garcia-leon/thesis-matlab-master
processWindow.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@NthOctaveFFT/processWindow.m
1,369
utf_8
d4d0405f3e031f1e438a8853aa32c9f8
function dataOut = processWindow(obj, dataIn) % PROCESSWINDOW This is the core workhorse of this analyser % % NOTE: Every window is the same size and comes appropriately % zero-padded both in front and at rear, whenever neccessary, % and so that is why the following is just a straightforward % call. %...
github
rodrigo-garcia-leon/thesis-matlab-master
display.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@Analyser/display.m
2,837
utf_8
bc560be0157cf825fc4198a5a806e06f
function display(obj) % DISPLAY Lists the fields of this object % Print the name fprintf('\n%s Object\n\n', class(obj)); % Name fprintf(' Name\t\t : %s\n', obj.Name); % filename fprintf(' filename\t : ''%s''\n', obj.filename); % fs fprintf(' fs\t\t : %d samples/sec\n', obj.fs); % bits fprintf(' bits\t\t : %d\...
github
rodrigo-garcia-leon/thesis-matlab-master
display2An.m
.m
thesis-matlab-master/tb_PsySound32/AudioAnalysers/@Analyser/display2An.m
2,837
utf_8
bc560be0157cf825fc4198a5a806e06f
function display(obj) % DISPLAY Lists the fields of this object % Print the name fprintf('\n%s Object\n\n', class(obj)); % Name fprintf(' Name\t\t : %s\n', obj.Name); % filename fprintf(' filename\t : ''%s''\n', obj.filename); % fs fprintf(' fs\t\t : %d samples/sec\n', obj.fs); % bits fprintf(' bits\t\t : %d\...
github
terrykong/Phase-Vocoder-master
FinalDemo.m
.m
Phase-Vocoder-master/Version Final/FinalDemo/FinalDemo.m
6,012
utf_8
741bb7c7526783a7a64ff3f061d7633a
% FINAL DEMO interface % % This script is meant to be used for communication with the DSP chip % This opens a serial port to listen (indefinitely) to the DSP chip. % % function FinalDemo clear all; clc; close all; %% Stablish serial connection with DSP Shield baud = 115200; % comport = 'COM6'; compo...
github
terrykong/Phase-Vocoder-master
realImag2Complex.m
.m
Phase-Vocoder-master/Version Final/FinalDemo/realImag2Complex.m
428
utf_8
cfd81577ef07a1b805ed980806a453a3
% REALIMAG2COMPLEX Converts from real-imag interleaved to complex format. % % OUTPUT = REALIMAG2COMPLEX(INPUT) converts INPUT vector with interleaved % real and imaginary values to complex format. E.g., % INPUT = [1; 2; 3; 4; 5; 6; 7; 8] the output is % OUTPUT = [1 + 2 j; 3 + 4 j; 5 + 6 j; 7 + 8 j] % % See als...