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 | warpedfilters.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/filterbank/warpedfilters.m | 15,221 | utf_8 | 79f135d68aafa91d7d36bd598192aea5 | function [g,a,fc,L]=warpedfilters(freqtoscale,scaletofreq,fs,fmin,fmax,bins,Ls,varargin)
%WARPEDFILTERS Frequency-warped band-limited filters
% Usage: [g,a,fc]=warpedfilters(freqtoscale,scaletofreq,fs,fmin,fmax,bins,Ls);
%
% Input parameters:
% freqtoscale : Function converting frequency (Hz) to scale unit... |
github | rodrigo-garcia-leon/thesis-matlab-master | genfiltcoefs.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/thirdparty/Playrec/genfiltcoefs.m | 12,099 | utf_8 | fa8accb9bc1921b4949cf2d3082840f0 | function genfiltcoefs(fp,As,varargin)
%GENFILTCOEFS Generate half-band IIR filter
% Usage: genfiltcoefs(fp,As)
% genfiltcoefs(fp,As)
%
% Input parameters:
% fp : Passband edge frequency
% As : Stopband attenuation in dB [positive]
%
% This function generates coefficien... |
github | rodrigo-garcia-leon/thesis-matlab-master | demo_bpframemul.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/demos/demo_bpframemul.m | 6,401 | utf_8 | 2729f8c937eaf0eb365e4fc2855187ae | function demo_bpframemul
%DEMO_BPFRAMEMUL Frame multiplier acting as a time-varying bandpass filter
%
% This demo demonstrates creation and effect of a Gabor multiplier. The
% multiplier performs a time-varying bandpass filtering. The band-pass
% filter with center frequency changing over time is explicitly crea... |
github | rodrigo-garcia-leon/thesis-matlab-master | demo_blockproc_paramequalizer.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/demos/demo_blockproc_paramequalizer.m | 7,459 | utf_8 | f1720d64f3f6b802aa55e41fa5c519d7 | function demo_blockproc_paramequalizer(source,varargin)
%DEMO_BLOCKPROC_PARAMEQUALIZER Real-time equalizer demonstration
% Usage: demo_blockproc_paramequalizer('gspi.wav')
%
% For additional help call DEMO_BLOCKPROC_PARAMEQUALIZER without arguments.
%
% This demonstration shows an example of a octave parametric
... |
github | rodrigo-garcia-leon/thesis-matlab-master | blocksyn.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/blockproc/blocksyn.m | 9,470 | utf_8 | 079daa876725a59b2ab4eee65bb65024 | function [fhat, fola] = blocksyn(F, c , Lb, fola)
%BLOCKSYN Blockwise synthesis interface
% Usage: blocksyn(F, c, Lb)
%
% Input parameters:
% F : Synthesis frame object.
% c : Coefficients of a block.
% Lb : Length of the block.
% fola : Explicitly defined overlap.
% Output parameters:... |
github | rodrigo-garcia-leon/thesis-matlab-master | block.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/blockproc/block.m | 22,783 | utf_8 | 09a00aafb80f4a334f9446c490f7ca57 | function [fs,classid] = block(source,varargin)
%BLOCK Initialize block stream
% Usage: block(source);
%
% Input parameters:
% source : Block stream input.
% Output parameters:
% fs : Sampling rate.
% classid : Data type.
%
% BLOCK(source) initializes block data stream from source whi... |
github | rodrigo-garcia-leon/thesis-matlab-master | blockana.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/blockproc/blockana.m | 8,873 | utf_8 | 3f5ffb028f40ded60ce5c029ccd94ea4 | function [c, fola] = blockana(F, f, fola)
%BLOCKANA Blockwise analysis interface
% Usage: c=blockana(F, f)
%
% Input parameters:
% Fa : Analysis frame object.
% f : Block of signal.
% fola : Explicitly defined overlap
% Output parameters:
% c : Block coefficients.
% fola : Sto... |
github | rodrigo-garcia-leon/thesis-matlab-master | blockframeaccel.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/blockproc/blockframeaccel.m | 4,805 | utf_8 | 60927e3a4f7b988fdde95533cbfa453c | function Fo = blockframeaccel(F, Lb, varargin)
%BLOCKFRAMEACCEL Precompute structures for block processing
% Usage: F = blockframeaccel(F,Lb);
%
% F=BLOCKFRAMEACCEL(F,Lb) has to be called for each frame object prior to
% entering the main loop where BLOCKANA and BLOCKSYN are called.
% The function works entirel... |
github | rodrigo-garcia-leon/thesis-matlab-master | wfilt_remez.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfilt_remez.m | 14,554 | utf_8 | 206b231e3b7f7f43ec244173d65506bd | function [h,g,a,info]=wfilt_remez(L,K,B)
%WFILT_REMEZ Filters designed using Remez exchange algorithm
% Usage: [h,g,a]=wfilt_remez(L,K,B)
%
% Input parameters:
% L : Length of the filters.
% K : Degree of flatness (regularity) at z=-1.
% B : Normalized transition bandwidth.
%
% ... |
github | rodrigo-garcia-leon/thesis-matlab-master | wpbest.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wpbest.m | 11,139 | iso_8859_13 | 8943979faacd31efe191ecd3942b0cab | function [c,info] = wpbest(f,w,J,varargin)
%WPBEST Best Tree selection
% Usage: c = wpbest(f,w,J,cost);
% [c,info] = wpbest(...);
%
% Input parameters:
% f : Input data.
% w : Wavelet Filterbank.
% J : Maximum depth of the tree.
%
% Output parameters:
% c : Coef... |
github | rodrigo-garcia-leon/thesis-matlab-master | wfilt_spline.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfilt_spline.m | 6,969 | utf_8 | 4a19639fb3200ecd19ba9ae06db78371 | function [h,g,a,info]=wfilt_spline(m,n)
% WFILT_SPLINE Biorthogonal spline wavelets
% Usage: [h,g,a]=wfilt_spline(m,n);
%
% Input parameters:
% m : Number of zeros at z=-1 of the lowpass filter in g{1}
% n : Number of zeros at z=-1 of the lowpass filter in h{1}
%
% [h,g,a]=WFILT_SPLINE(m,... |
github | rodrigo-garcia-leon/thesis-matlab-master | wpfbt2filterbank.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wpfbt2filterbank.m | 4,546 | utf_8 | 7cfc47b93ac83d3ac7d11bc43cae2ca1 | function [g,a] = wpfbt2filterbank( wt, varargin)
%WPFBT2FILTERBANK WPFBT equivalent non-iterated filterbank
% Usage: [g,a] = wpfbt2filterbank(wt)
%
% Input parameters:
% wt : Wavelet filter tree definition
%
% Output parameters:
% g : Cell array containing filters
% a : Vector of sub-... |
github | rodrigo-garcia-leon/thesis-matlab-master | dtwfbinit.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/dtwfbinit.m | 10,526 | utf_8 | a7e1cd6a025d3fe1d2246d0534cb6484 | function [dualwt,info] = dtwfbinit(dualwtdef,varargin)
%DTWFBINIT Dual-Tree Wavelet Filterbank Initialization
% Usage: dualwt=dtwfbinit(dualwtdef);
%
% Input parameters:
% dualwtdef : Dual-tree filterbank definition.
%
% Output parameters:
% dualwt : Dual-tree filtarbank structure.
%
% dtwfi... |
github | rodrigo-garcia-leon/thesis-matlab-master | wfilt_lemarie.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfilt_lemarie.m | 3,253 | utf_8 | ad249afe886c65f761a4ced88c570bc1 | function [h,g,a,info]=wfilt_lemarie(N)
%WFILT_LEMARIE Battle and Lemarie filters
% Usage: [h,g,a]=wfilt_lemarie(N)
%
% Input parameters:
% N : Filter length, must be even.
%
% [h,g,a]=WFILT_LEMARIE(N) calculates N (even) truncated coeficients
% of orthonormal Battle-Lemarie wavelets. Filter coeffi... |
github | rodrigo-garcia-leon/thesis-matlab-master | fwtinit.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/fwtinit.m | 16,457 | utf_8 | 226db8192821703fd6c2a3551f7d98e2 | function [w,info] = fwtinit(wdef,prefix)
%FWTINIT Wavelet Filterbank Structure Initialization
% Usage: w = fwtinit(wdef);
% w = fwtinit(wdef,prefix);
% [w,info]=fwtinit(...)
%
% Input parameters:
% wdef : Wavelet filters specification.
% prefix : Function name prefix
%
% Ou... |
github | rodrigo-garcia-leon/thesis-matlab-master | wfilt_sym.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfilt_sym.m | 12,937 | utf_8 | 13b7ea478eed5df71149f6a79ae1155f | function [h,g,a,info]=wfilt_sym(N)
%WFILT_SYM Symlet filters
% Usage: [h,g,a]=wfilt_sym(N);
%
% [h,g,a]=WFILT_SYM(N) generates the "least asymmetric" Daubechies'
% orthogonal wavelets or "symlets" with N vanishing moments and
% length 2N.
% Zeros of the trigonometrical polynomial the filters consist o... |
github | rodrigo-garcia-leon/thesis-matlab-master | wavfun.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wavfun.m | 4,515 | utf_8 | 99e5dd9d5eb337f8da63f8b91eb972fd | function [wfunc,sfunc,xvals] = wavfun(w,varargin)
% WAVFUN Wavelet Function
% Usage: [w,s,xvals] = wavfun(g)
% [w,s,xvals] = wavfun(g,N)
%
% Input parameters:
% w : Wavelet filterbank
% N : Number of iterations
% Output parameters:
% wfunc : Approximation of wavelet fu... |
github | rodrigo-garcia-leon/thesis-matlab-master | nat2freqOrder.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfbtmanip/nat2freqOrder.m | 3,925 | utf_8 | bfe64f8295581d4ec22f4fc8e46cb79b | function wt = nat2freqOrder(wt,varargin)
%NAT2FREQORDER Natural To Frequency Ordering
% Usage: wt = nat2freqOrder(wt);
%
% Input parameters:
% wt : Structure containing description of the filter tree.
%
% Output parameters:
% wt : Structure containing description of the filter tree.
%
% N... |
github | rodrigo-garcia-leon/thesis-matlab-master | nodeBForder.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfbtmanip/nodeBForder.m | 2,487 | utf_8 | 868cf7742546e15a0feeaeeec0422d9c | function nodesIdxs = nodeBForder(nodeNo,wt)
%NODEBFORDER Nodes in the Breadth-First search order
% Usage: nodesIdxs = nodeBForder(nodeNo,wt)
%
% Input parameters:
% nodeNo : Id of a node.
% wt : Structure containing description of the filter tree.
%
% Output parameters:
% nodesIdxs :... |
github | rodrigo-garcia-leon/thesis-matlab-master | nodesMultid.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfbtmanip/nodesMultid.m | 4,406 | utf_8 | c135a56e893a170dd16eecb849ba6f69 | function [g,a] = nodesMultid(wtPath,rangeLoc,rangeOut,wt)
%NODESMULTID Filter tree multirate identity filterbank
% Usage: [g,a]=nodesMultid(wtPath,rangeLoc,rangeOut,wt);
%
% Input parameters:
% wtPath : Indexes of nodes to be processed in that order.
% rangeLoc : Idxs of each node terminal output... |
github | rodrigo-garcia-leon/thesis-matlab-master | nodeSubtreeDelete.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfbtmanip/nodeSubtreeDelete.m | 3,174 | utf_8 | d7d296e34bef0aeacc902563aec477c0 | function wt = nodeSubtreeDelete(nodeNo,wt)
%DELETESUBTREE Removes subtree with root node
% Usage: wt = nodeSubtreeDelete(nodeNo,wt)
%
% Input parameters:
% nodeNo : Node index.
% wt : Structure containing description of the filter tree.
%
% Output parameters:
% wt : Modified... |
github | rodrigo-garcia-leon/thesis-matlab-master | depthIndex2NodeNo.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/wavelets/wfbtmanip/depthIndex2NodeNo.m | 2,235 | utf_8 | 1dc4e9327d63a07a3ae30e6728bcc729 | function [nodeNo,nodeChildIdx] = depthIndex2NodeNo(d,k,wt)
%DEPTHINDEX2NODENO Get node from depth and index in the tree
% Usage: [nodeNo,nodeChildIdx] = depthIndex2NodeNo(d,k,wt)
%
% [nodeNo,nodeChildIdx] = DEPTHINDEX2NODENO(d,k,wt) returns node
% nodeNo and an array of its children nodes nodeChildIdx positioned... |
github | rodrigo-garcia-leon/thesis-matlab-master | framebounds.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/frames/framebounds.m | 7,264 | utf_8 | 6789fee323e4dcdb567492525d4eff6a | function [AF,BF]=framebounds(F,varargin);
%FRAMEBOUNDS Frame bounds
% Usage: fcond=framebounds(F);
% [A,B]=framebounds(F);
% [...]=framebounds(F,Ls);
%
% FRAMEBOUNDS(F) calculates the ratio B/A of the frame bounds of the
% frame given by F. The length of the system the frame bounds are
% calc... |
github | rodrigo-garcia-leon/thesis-matlab-master | isgram.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/gabor/isgram.m | 8,451 | utf_8 | ddce44022b904e9a85f973882b16e6ab | function [f,relres,iter]=isgram(s,g,a,varargin)
%ISGRAM Spectrogram inversion
% Usage: f=isgram(c,g,a);
% f=isgram(c,g,a,Ls);
% [f,relres,iter]=isgram(...);
%
% Input parameters:
% c : Array of coefficients.
% g : Window function.
% a : Length of time ... |
github | rodrigo-garcia-leon/thesis-matlab-master | gabconvexopt.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/gabor/gabconvexopt.m | 20,983 | utf_8 | 234b155bbe50c3a2992f49976706fee9 | function [gd,relres,iter] = gabconvexopt(g,a,M,varargin)
%GABCONVEXOPT Compute a window using convex optimization
% Usage: gout=gabconvexopt(g,a,M);
% gout=gabconvexopt(g,a,M, varagin);
%
% Input parameters:
% g : Window function /initial point (tight case)
% a : Time shift
% M :... |
github | rodrigo-garcia-leon/thesis-matlab-master | isgramreal.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/gabor/isgramreal.m | 7,796 | utf_8 | 46941a14a19b9b723acdeff991b704cd | function [f,relres,iter]=isgramreal(s,g,a,M,varargin)
%ISGRAMREAL Spectrogram inversion (real signal)
% Usage: f=isgramreal(s,g,a,M);
% f=isgramreal(s,g,a,M,Ls);
% [f,relres,iter]=isgramreal(...);
%
% Input parameters:
% c : Array of coefficients.
% g : Window funct... |
github | rodrigo-garcia-leon/thesis-matlab-master | wilwin.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/gabor/wilwin.m | 7,018 | utf_8 | 2b8ad87f660bd4fd362707dde834e0d6 | function [g,info] = wilwin(g,M,L,callfun);
%WILWIN Compute a Wilson/WMDCT window from text or cell array
% Usage: [g,info] = wilwin(g,M,L);
%
% [g,info]=WILWIN(g,M,L) computes a window that fits well with the
% specified number of channels M and transform length L. The window itself
% is specified by a text de... |
github | rodrigo-garcia-leon/thesis-matlab-master | shearfind.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/gabor/shearfind.m | 5,253 | utf_8 | ea1bcabd0da0676fbccdef4f990e837e | function [s0,s1,X] = shearfind(L,a,M,lt)
%SHEARFIND Shears for transformation of a general lattice to separable
% Usage: [s0,s1,br] = shearfind(L,a,M,lt);
%
% [s0,s1,br]=SHEARFIND(L,a,M,lt) computes three numbers, the first two
% represent a frequency and time shear respectively. With the returned
% choices o... |
github | rodrigo-garcia-leon/thesis-matlab-master | gabmuleigs.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/deprecated/gabmuleigs.m | 5,632 | utf_8 | 2a2cb99757cf53bc8a969baa947a96e5 | function [V,D]=gabmuleigs(K,c,p3,varargin)
%GABMULEIGS Eigenpairs of Gabor multiplier
% Usage: h=gabmuleigs(K,c,g,a);
% h=gabmuleigs(K,c,a);
% h=gabmuleigs(K,c,ga,gs,a);
%
% Input parameters:
% K : Number of eigenvectors to compute.
% c : symbol of Gabor multiplier
% ... |
github | rodrigo-garcia-leon/thesis-matlab-master | comp_fourierwindow.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/comp/comp_fourierwindow.m | 5,102 | utf_8 | c18f6c2a0152cb2f3859bb7725d2ef67 | function [g,info] = comp_fourierwindow(g,L,callfun);
%COMP_FOURIERWINDOW Compute the window from numeric, text or cell array.
% Usage: [g,info] = comp_fourierwindow(g,L,callfun);
%
% [g,info]=COMP_FOURIERWINDOW(g,L,callfun) will compute the window
% from a text description or a cell array containing additional
%... |
github | rodrigo-garcia-leon/thesis-matlab-master | comp_window.m | .m | thesis-matlab-master/tb_AMT/thirdparty/ltfat/comp/comp_window.m | 4,749 | utf_8 | 8a6742489573efd7a491a64eeb026240 | function [g,info] = comp_window(g,a,M,L,lt,callfun);
%COMP_WINDOW Compute the window from numeric, text or cell array.
% Usage: [g,info] = comp_window(g,a,M,L,s,callfun);
%
% [g,info]=COMP_WINDOW(g,a,M,L,lt,callfun) will compute the window
% from a text description or a cell array containing additional
% param... |
github | rodrigo-garcia-leon/thesis-matlab-master | data_langendijk2002.m | .m | thesis-matlab-master/tb_AMT/humandata/data_langendijk2002.m | 17,784 | utf_8 | 60055fc2034946c62ac476c3d38a51d2 | function data = data_langendijk2002(varargin)
%DATA_LANGENDIJK2002 Data from Langendijk & Bronkhorst (2002)
% Usage: data = data_langendijk2002(flag)
%
% Output parameters:
% data : The data points from the given figure;
%
% DATA_LANGENDIJK2002(flag) returns data points from the paper by
% Langendijk & ... |
github | rodrigo-garcia-leon/thesis-matlab-master | drnl.m | .m | thesis-matlab-master/tb_AMT/modelstages/drnl.m | 11,748 | utf_8 | 5cb53b8cc602b86d8563e95f60ffd1c3 | function [outsig, fc] = drnl(insig,fs,varargin)
%DRNL Dual Resonance Nonlinear Filterbank
% Usage: outsig = drnl(insig,fs);
%
% DRNL(insig,fs) computes the Dual Resonance Non-Linear (DRNL)
% filterbank of the input signal insig sampled at fs Hz with channels
% specified by the center frequencies in fc. The DRN... |
github | rodrigo-garcia-leon/thesis-matlab-master | exp_ziegelwanger2014.m | .m | thesis-matlab-master/tb_AMT/experiments/exp_ziegelwanger2014.m | 64,405 | utf_8 | ddcf724e71422ebff6f4f19d27ce3527 | function exp_ziegelwanger2014(varargin)
%EXP_ZIEGELWANGER2014 Figures from Ziegelwanger and Majdak (2014)
% Usage: data = exp_ziegelwanger2014(flag)
%
% EXP_ZIEGELWANGER2014(flags) reproduces figures of the paper from
% Ziegelwanger and Majdak (2014).
%
% The following flags can be specified:
%
% 'redo' ... |
github | rodrigo-garcia-leon/thesis-matlab-master | localizationerror.m | .m | thesis-matlab-master/tb_AMT/general/localizationerror.m | 16,642 | utf_8 | 4c45a198dca705797e8d7a2d43149ae4 | function [varargout] = localizationerror(m,varargin)
%LOCALIZATIONERROR Compute psychoacoustic performance parameters for sound localization experiments
% Usage: [accL, precL, accP, precP, querr] = localizationerror(m)
% [res, meta, par] = localizationerror(m,errorflag)
%
% LOCALIZATIONERROR(m,errorflag) r... |
github | rodrigo-garcia-leon/thesis-matlab-master | a3cst2psy.m | .m | thesis-matlab-master/tb_APEX/a3cst2psy.m | 2,767 | utf_8 | 87a6872b1b6f97c698bf9e9fa571f6d4 | function [stimlabels, percent, count, totals, stimuli,buttons,corrector]=a3cst2psy(filename, spattern, correctanswer)
% function [stimlabels, percent, count, totals, stimuli,buttons,corrector] ...
% =a3cst2psy(filename, spattern, correctanswer)
%
% filename
% spattern1: list of scanf patterns to get param... |
github | rodrigo-garcia-leon/thesis-matlab-master | a3getresults.m | .m | thesis-matlab-master/tb_APEX/a3getresults.m | 2,509 | utf_8 | 0c22ca975af832d712f464f50c39f900 | function [results,parameters,general] = a3getresults(filename,script,forcetransform)
% function [results,parameters,general] = a3getresults(filename,script,forcetransform)
%
% get results from an APEX3 result file
% transform first if necessary (check implementation on windows)
%
% % Example:
% % filename = '/home/alej... |
github | rodrigo-garcia-leon/thesis-matlab-master | a3xslt.m | .m | thesis-matlab-master/tb_APEX/a3xslt.m | 1,161 | utf_8 | d13d01a2ea3a37c048979570475a5ae4 | function a3xslt(in,xsl,out);
%XSLT6p1 - XSLT implementation for MATLAB 6.1
%
% xslt6p1(xml_in,xsl_in,html_out)
%
% All three arguments are file names.
%
% The versions of xerces.jar and saxon.jar which ship with MATLAB 6.1
% must be on your classpath
% get absolute path
if (in(1)~=delim && in(2)~=':')
in=which(in)... |
github | rodrigo-garcia-leon/thesis-matlab-master | read_aseq.m | .m | thesis-matlab-master/tb_APEX/read_aseq.m | 2,005 | utf_8 | 570da6996e6c887574a2d9477afcaaa2 | function seq=read_aseq(filename)
% seq=read_aseq(filename)
%
% see save_aseq for a format description
%
% Tom Francart, ExpORL, 2009
% tom.francart@med.kuleuven.be
[fields,identifiers,formats,fieldsizes,version]=aseq_info;
seq=struct;
fid=fopen(filename, 'r');
if (fid==-1)
error(['Cannot open file ' filename ' f... |
github | rodrigo-garcia-leon/thesis-matlab-master | process_stimuli_exp.m | .m | thesis-matlab-master/tb_APEX_AddOns/process_stimuli_exp.m | 4,033 | utf_8 | f963ea4dfa13d083f4da4373c7a100fe | function histos = process_stimuli_exp(stimuli, corrector, delimiter, to_disg)
% function histos = process_stimuli_exp(stimuli, corrector, delimiter, to_disg)
%
% Inputs:
% stimuli
% corrector
% delimiter (usually '_')
% to_disg (usually 'stimulus')
%
% Programmed by Matthias, revised by Alejandro
%%%%%%%%%%%%%%... |
github | rodrigo-garcia-leon/thesis-matlab-master | psysound3.m | .m | thesis-matlab-master/tb_PsySound32/psysound3.m | 5,099 | utf_8 | 94a5a85227a3c193b6c089da30a3ec03 | function psysound3(bOpenGUI)
% PSYSOUND3
%
% This wrapper function checks to make sure PsySound3 is
% installed and then opens the GUI
% By default it does not display the GUI
if nargin == 0
bOpenGUI = 0;
end
% Check to see if PsySound3 is on the path
p = path;
if ~isempty(findstr(p, 'psysound3'))
try
get... |
github | rodrigo-garcia-leon/thesis-matlab-master | tsFourier.m | .m | thesis-matlab-master/tb_PsySound32/Objects/CustomObjects/@DAAF/tsFourier.m | 2,039 | utf_8 | bfb98e7824d5ff996517fabd49a4c4fa | function [filematL,filematR] = tsFourier(obj,ax)
% TSFOURIER ESA Fourier Analysis Create graphs and attach callbacks
data = obj.DataPoints;
timedata = obj.TimePoints;
data = data(find(~isnan(data)));
timedata = timedata(find(~isnan(data)));
axes(ax{1}); cla; set(ax{1},'Tag','ESAAxesTop'); hold on;
set(ax{1},'Userda... |
github | rodrigo-garcia-leon/thesis-matlab-master | specav.m | .m | thesis-matlab-master/tb_PsySound32/Objects/CustomObjects/@DAAF/specav.m | 878 | utf_8 | b1d99b66854311d58ee1fd4e7f6b94c2 |
function output =specav(winsize,overlap,s,newLen)
winNum=512;
%s = s(1:480000); % Take only first ten seconds
fs = 44100;
output = zeros(winsize*2,1);
while length(output) < fs*newLen
winsizerand = floor(rand * winsize) + winsize/2; % Choose Random Windowsize
avWindows = zeros(winsizerand,512); % Init
for i = 1... |
github | rodrigo-garcia-leon/thesis-matlab-master | density.m | .m | thesis-matlab-master/tb_PsySound32/Objects/CustomObjects/@DAAF/density.m | 1,585 | utf_8 | 13ece5bb7676a551b6f1449fa4fb4a27 | function obj = hist(obj, decimation, varargin)
% Make density sonification
%
% 1. get frames and associated datapoints
% 2. window frames
% 3. Choose a duration
% 4. Make a data range from max to min (threshold elsewhere)
% 5. Place in appropriate place on duration.
decimation = 10;
% Sort Data
% Window Frames
for i... |
github | rodrigo-garcia-leon/thesis-matlab-master | DAAF.m | .m | thesis-matlab-master/tb_PsySound32/Objects/CustomObjects/@DAAF/DAAF.m | 14,741 | utf_8 | 08579f1cac520a915e591f527e459e91 | function obj = DAAF(varargin)
% DAAF Base class constructor
%
% Inputs:
%
% 1. TimeSeries Object with Data
% 2. AudioFile Object
% 3. Segmentation Type
%
switch(nargin)
case 0
obj.Name = 'DAAF';
obj = class(obj, 'DAAF');
case 1
arg = varargin{1};
if isa(arg, 'DAAF')
% Copy construct... |
github | rodrigo-garcia-leon/thesis-matlab-master | export.m | .m | thesis-matlab-master/tb_PsySound32/Objects/CustomObjects/@DAAF/export.m | 3,452 | utf_8 | 0299d73e160db7d5bfe7db88fbb72f69 | function obj = export(obj,varargin)
% SOUND method for DAAF Object
name = varargin{1};
if strcmp(class(name),'double')
name = ['percentile' num2str(name)];
end
dot = strfind(obj.AudioFilename,'.');
switch nargin
case 1
wavwrite(obj.OutputAudio,obj.FS,[obj.AudioFilename(1:dot-1) name obj.Name '.wav']);
c... |
github | rodrigo-garcia-leon/thesis-matlab-master | FindChord.m | .m | thesis-matlab-master/tb_PsySound32/Objects/CustomObjects/@DAAF/FindChord.m | 10,468 | utf_8 | 1df03fd4ec0e3cb3b231ee8960285f3f | function [chord,R2]= FindChord(chromata)
% finds the octave-spaced chord chroma profile that most closely matches the chroma profile%
% var chroma, intervals: string;
% root: integer;
% rootX: integer;
% i: integer;
% r, SUMx, SUMx2: longreal; %correlation variables%
% rX: longreal;
if sum(chromata) == 0
chord ... |
github | rodrigo-garcia-leon/thesis-matlab-master | findAllInDataSet.m | .m | thesis-matlab-master/tb_PsySound32/Objects/DataStorageObjects/findAllInDataSet.m | 1,137 | utf_8 | 6a20f304c7d5da41991f5ae497a22814 | function dataObjS = findAllInDataSet(varargin)
% FINDALLINDATASET Finds all dataStorage objects that match the P/V pairs
% starting at the root node
p = getPsysound3Prefs;
% Load root object
load(fullfile(p.dataDir, filesep, 'dataInfo.mat'));
if mod(nargin, 2)
error('Even number of property/valu... |
github | rodrigo-garcia-leon/thesis-matlab-master | get.m | .m | thesis-matlab-master/tb_PsySound32/Objects/DataStorageObjects/@dataStorageTree/get.m | 1,227 | utf_8 | 930b225d8a8b98033662338ae1828695 | function val = get(obj, varargin)
% GET Method for the dataStorageTree object
val = [];
ind = 1;
if nargin ==1
val = obj;
elseif nargin == 2
switch lower(varargin{1})
case 'tree'
val = obj.tree;
otherwise
error(['Unknown property specified : ', prop]);
end
elseif nargin > 2
% make comp... |
github | rodrigo-garcia-leon/thesis-matlab-master | dataStorageTree.m | .m | thesis-matlab-master/tb_PsySound32/Objects/DataStorageObjects/@dataStorageTree/dataStorageTree.m | 2,626 | utf_8 | 09c9677a425c976bdbb30d0fbbf914d4 | function obj = dataStorageTree(varargin)
% DATASTORAGETREE object for PsySound3 data files
%
% This object is a container object to act as an array for the
% dataStorage objects and as a method to access (not change) the
% data Objects themselves.
%
% Use get method to get dataobjects of a particular type
switch nar... |
github | rodrigo-garcia-leon/thesis-matlab-master | plot.m | .m | thesis-matlab-master/tb_PsySound32/Objects/DataObjects/@psysnd3tSpectrum/plot.m | 2,709 | utf_8 | cbbcc319c08260597ffa0e5bb9c9e1dd | function varargout = plot(obj, varargin)
% PLOT Plot function for tSpectrum
out = [];
doPlot = true;
time = get(obj, 'Time');
data = get(obj, 'Data');
freq = get(obj, 'Freq');
option = 'image';
if nargin == 2
option = varargin{1};
end
pTitle = '';
if nargin == 3
pTitle = varargin{2};
end
% Switch on opti... |
github | rodrigo-garcia-leon/thesis-matlab-master | psysnd3Stats.m | .m | thesis-matlab-master/tb_PsySound32/Objects/DataObjects/@psysnd3Stats/psysnd3Stats.m | 2,744 | utf_8 | fc47eb6d56a5957417161a76c2d276c2 | function obj = psysnd3Stats(varargin)
% PSYSND3STATS Object to hold data statistics
%
switch(nargin)
case 0
emptyStr = struct('Name','','Unit','','Value',[]);
% Create an empty object - Default constructor
obj = struct('Name', '', ...
'min', [], ...
'max', [], ...
... |
github | rodrigo-garcia-leon/thesis-matlab-master | dataAnalysis.m | .m | thesis-matlab-master/tb_PsySound32/Objects/DataObjects/@psysnd3tSeries/dataAnalysis.m | 5,075 | utf_8 | 04fca5b7b5bf13dd3bf6a868c4dc132a | function out = dataAnalysis(obj, option, varargin)
% DATAANALYSIS Gateway function for data analysis.
%
%
out = [];
% Switch on option
switch(option)
case 'GetList'
out = {'fft', 'downsample', 'difference'};
case 'fft'
out = do_fft(obj);
case 'autocorr'
out = do_autocorr(obj);
case 'crosscorr'
i... |
github | rodrigo-garcia-leon/thesis-matlab-master | process.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@Threshold/process.m | 1,828 | utf_8 | eae27729e37bfc7af5beda80cd762ba2 | function process(obj, hObj)
% PROCESS This method is called when the Process button is pressed
%
% Get the tree nodes
% Get the tree nodes
panel = get(hObj,'Parent');
[nodes, uit] = getSelectedTreeNodes(obj, panel);
% Bail out if two nodes are not selected
if length(nodes) ~= 2
errordlg('Please select two nodes. T... |
github | rodrigo-garcia-leon/thesis-matlab-master | process.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@Periodicity/process.m | 5,465 | utf_8 | ba98f413985b070427f81c57056fc187 | function process(obj, hObj)
% PROCESS This method is called when the Process button is pressed
%
% Get the tree nodes
[TSObj, dataObjS, node, uit] = getDataFromNode(obj, hObj, 'tSeries');
% Get the Checkboxes from the ui
panel = get(hObj,'Parent');
pRa = findobj(panel, 'Tag', 'PeriodicityGraphRateExt');
pSm = findob... |
github | rodrigo-garcia-leon/thesis-matlab-master | analyse.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@Periodicity/analyse.m | 7,980 | utf_8 | 333edad4dc2f9f394586603b1381a615 | function out = analyse(obj, DObj, varargin)
% ANALYSE This method is called when the Process button is pressed - it
% is the actual analysis and the process method is the wrapper around it.
%
if strcmp(class(DObj),'struct')
TSObj = DObj.DataObj;
data = TSObj.data;
elseif strcmp(class(DObj),'tSeries')
TSO... |
github | rodrigo-garcia-leon/thesis-matlab-master | ui.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@BasicPlot/ui.m | 5,095 | utf_8 | fa99f9aba54ec2812f22273a3a953886 | function obj = ui(obj, panel)
% UI method for Basic Plot
%
% Inputs:
% panel : is the handle to the left panel of the data analyser
bgColor = [0.9 0.9 0.9];
% Add the Graph push-button
uicontrol('Parent', panel, ...
'units', 'normalized', ...
'Position', [0.8 0.64 0.17 0.07], ...
'... |
github | rodrigo-garcia-leon/thesis-matlab-master | updateDataAnalyserPanel.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@SummaryBasic/updateDataAnalyserPanel.m | 4,358 | utf_8 | 026bd03b042e77c0f70015701662104b | function updateDataAnalyserPanel(obj, panel)
% UPDATEDATAANALYSERPANEL This method is called everytime a tree
% node is clicked.
%
% Fills in the appropriate text box(es)
sNodes = getSelectedTreeNodes(obj, panel);
len = length(sNodes);
resetText();
p = getPsysound3Prefs;
if len > 0
nod... |
github | rodrigo-garcia-leon/thesis-matlab-master | ui.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@DataExportBasic/ui.m | 9,028 | utf_8 | 21e21354084b645857f3394e6d8368d8 | function obj = ui(obj, panel)
% UI metod for basic data export
%
% Basically a grid
%
% Inputs:
% panel : is the handle to the left panel of the data analyser
bgColor = [0.9 0.9 0.9];
% Data dir info
pos = [0.03 0.03 0.8 0.7];
boxH = uicontrol('Parent', panel, ...
'units', 'normalized', ...
'Position', pos, ...... |
github | rodrigo-garcia-leon/thesis-matlab-master | collapseAndUnLoadTree.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@DataAnalyser/collapseAndUnLoadTree.m | 2,749 | utf_8 | b8f85c6e084e78398adad8dc506c9454 | function collapseAndUnLoadTree(obj, panel)
% COLLAPSEANDUNLOADTREE Collapses and unloads tree so that
% subsequent expansion results in new
% files/nodes being picked up
%
uit = getTree(obj, panel);
selPath = uit.Tree.getSelectionPath;
uit.Tree.collapseRow(0);
setLoaded(ui... |
github | rodrigo-garcia-leon/thesis-matlab-master | addToDataAnalysisFolder.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@DataAnalyser/addToDataAnalysisFolder.m | 2,534 | utf_8 | 5151681f1eba0837a1b398a810a83450 | function out = addToDataAnalysisFolder(obj, fullPaths, dataObjS, uit)
% ADDTODATAANALYSISFOLDER Gateway function
%
% eg.
%
% |
% |--obj-- SPL A
% |
% |--obj-- SPL B
% \
% dataInfo.mat
%
% will become ....
%
% |
% |--obj-- SPL A
% | |
% | |--folder-- FFT (say)
% | | |
% | |... |
github | rodrigo-garcia-leon/thesis-matlab-master | FindChord.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ChordalAnalysis/private/FindChord.m | 11,420 | utf_8 | 3d334c511592ae7d1bbbe83be7cf8790 | function [chord, R2, root, intervalNum] = FindChord(chromata)
% finds the octave-spaced chord chroma profile that most closely matches the chroma profile%
% var chroma, intervals: string;
% root: integer;
% rootX: integer;
% i: integer;
% r, SUMx, SUMx2: longreal; %correlation variables%
% rX: longreal;
%chromata... |
github | rodrigo-garcia-leon/thesis-matlab-master | updateDataAnalyserPanel.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@StatisticsBasic/updateDataAnalyserPanel.m | 1,214 | utf_8 | f78cb920b4bb5784077dca37b0d2e49d | function updateDataAnalyserPanel(obj, panel)
% UPDATEDATAANALYSERPANEL This method is called everytime a tree
% node is clicked.
%
%
% Update Enable/Disable state of plot buttons depending on
% the type of objects in listbox4
displayButton = findobj(panel,'Tag','BasicStatisticsDisplay');
sN... |
github | rodrigo-garcia-leon/thesis-matlab-master | displayStatsObject.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@StatisticsBasic/displayStatsObject.m | 2,321 | utf_8 | d40b5677a9b608f6a8a621a99c5bc943 | function displayStatsObject(obj, hObj)
% DISPLAYSTATSOBJECT Callback for the Display pushbutton
% Initial handle retrieval
p = get(hObj,'Parent');
utb = get(p, 'Parent');
utg = get(utb, 'Parent');
fig = get(utg, 'Parent');
% Get the tree nodes
nodes = getSelectedTreeNodes(obj, p);
% Bail out if empty
if isempty(... |
github | rodrigo-garcia-leon/thesis-matlab-master | BVCallback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ExploratorySoundAnalysis/BVCallback.m | 7,124 | utf_8 | ae8a8fa71d7df032d6c21d596b6fdcc3 | function BVCallback(obj, hObj)
% BVCALLBACK Callback for the Bivariate pushbutton
% % Initial handle retrieval
p = get(hObj,'Parent'); % The uipanel for univariate
uip = get(p,'Parent'); % The uipanel for the DataAnalyser
% Find axes
ax{1} = findobj(uip, 'Type','Axes','Tag','ESAAxesTop');
ax{2} = findobj(uip, 'T... |
github | rodrigo-garcia-leon/thesis-matlab-master | UVCallback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ExploratorySoundAnalysis/UVCallback.m | 8,254 | utf_8 | 694acbbc367f3662fe1f462271cbcbf0 | function UVCallback(obj, hObj, DAAFObj)
% UVCALLBACK Callback for the Univariate pushbutton
% % Initial handle retrieval
p = get(hObj,'Parent'); % The uipanel for univariate
uip = get(p,'Parent'); % The uipanel for the DataAnalyser
% Find axes
ax{1} = findobj(uip, 'Type','Axes','Tag','ESAAxesTop');
ax{2} = findo... |
github | rodrigo-garcia-leon/thesis-matlab-master | updateDataAnalyserPanel.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ExploratorySoundAnalysis/updateDataAnalyserPanel.m | 1,494 | utf_8 | a48f5bcb9ccb31375804b9926853366a | function updateDataAnalyserPanel(obj, panel)
% UPDATEDATAANALYSERPANEL This method is called everytime a tree
% node is clicked.
%
%
% Update Enable/Disable state of plot buttons depending on
% the type of objects in listbox4
sNodes = getSelectedTreeNodes(obj, panel);
len = length(sNodes);
... |
github | rodrigo-garcia-leon/thesis-matlab-master | ui.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ExploratorySoundAnalysis/ui.m | 11,550 | utf_8 | e3e007da39f468a0f29d81075aafeb5c | function obj = ui(obj, panel)
% UI method for Basic Plot
%
% Inputs:
% panel : is the handle to the left panel of the data analyser
bgColor = [0.9 0.9 0.9];
%%%%%%%%%%%%%%
% Univariate %
%%%%%%%%%%%%%%
univPanel = uipanel('Parent',panel, ...
'Title','Univariate Data', ...
'unit... |
github | rodrigo-garcia-leon/thesis-matlab-master | ESA.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ExploratorySoundAnalysis/private/ESA.m | 5,296 | utf_8 | 7fd7758c1e41d655d2011355d3b98767 | function filemat = ESA(varargin)
% Build Soundfile from grains.
obj = varargin{1};
dataObj = varargin{2};
ax = varargin{3};
ax1 = ax{1};
ax2 = ax{2};
axTag1 = get(ax{1},'Tag');
axTag2 = get(ax{2},'Tag');
plotType = varargin{4};
decimateToLength =[];
if length(varargin)>4
decimateToLength = varargin{5};
end
timestep ... |
github | rodrigo-garcia-leon/thesis-matlab-master | 2tsFourier.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ExploratorySoundAnalysis/private/2tsFourier.m | 1,200 | utf_8 | 999e0779abf6bfea9627e9a739073947 | function [filematL,filematR] = tsFourier(dataObj,filemat,ax,concatType)
% Create the graphs and attach callbacks
data = dataObj.DataObj.data;
timedata = dataObj.DataObj.time;
axes(ax{1});
cla;
set(ax{1},'Tag','ESAAxesTop');
hold on;
fftdata = fft(data);
freqdata = 1:length(fftdata);
for i = 1:(length(fftdata)/... |
github | rodrigo-garcia-leon/thesis-matlab-master | playchroma.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ExploratorySoundAnalysis/private/playchroma.m | 3,387 | utf_8 | c3bb2b9e560a4525db0b7c2f73bdbb1f | function playchroma(method,dataObj,beats,decimation)
% PLAYCHROMA play chroma pattern
chro = dataObj.data;
timePointsAll = dataObj.time;
below1000 = find(timePointsAll <1000);
chro = chro(below1000,:);
timePoints = timePointsAll(below1000);
chroma = [0:11]';
[r,c] = size(chro);
% make 12 tones
note... |
github | rodrigo-garcia-leon/thesis-matlab-master | ui.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AnimationPlot/ui.m | 3,710 | utf_8 | 2c83bda3fbc5778461096467af92ee4b | function obj = ui(obj, panel)
% UI method for Animation Plot
%
% Inputs:
% panel : is the handle to the left panel of the data analyser
bgColor = [0.9 0.9 0.9];
% Add the Movie push-button
uicontrol('Parent', panel, ...
'units', 'normalized', ...
'Position', [0.8 0.64 0.17 0.07], ...
... |
github | rodrigo-garcia-leon/thesis-matlab-master | updateDataAnalyserPanel.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ComparisonPlot/updateDataAnalyserPanel.m | 1,214 | utf_8 | f78cb920b4bb5784077dca37b0d2e49d | function updateDataAnalyserPanel(obj, panel)
% UPDATEDATAANALYSERPANEL This method is called everytime a tree
% node is clicked.
%
%
% Update Enable/Disable state of plot buttons depending on
% the type of objects in listbox4
displayButton = findobj(panel,'Tag','BasicStatisticsDisplay');
sN... |
github | rodrigo-garcia-leon/thesis-matlab-master | ui.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@ComparisonPlot/ui.m | 3,139 | utf_8 | de709345d845f5d6ae7afcc5f994d019 | function obj = ui(obj, panel)
% UI metod for basic stats
%
bgColor = [0.9 0.9 0.9];
% Create uicontrols
posGraph = [0.8 0.64 0.17 0.07];
posPopup = [0.8 0.74 0.17 0.07];
set(panel,'Visible','off');
h = uicontrol('Parent', panel, ...
'units', 'normalized', ...
'Position', posGraph, ...
... |
github | rodrigo-garcia-leon/thesis-matlab-master | sonifyData.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/sonifyData.m | 5,105 | utf_8 | 787697a9cfc3cc07a6d1f1b4c9649235 | function signal = sonifyData(tsArray, tVect, minMaxVals, fs, usePinkNoise)
% SONIFY : Sonification workhorse
% tsArray : A cell array of timeseries objects
% tVect : time vector to resample on
% minMaxVals : Structure of min/max value arrays, one for each
% 'freq', 'level', and 'pan'
%
% ... |
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyExportWAV_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyExportWAV_Callback.m | 490 | utf_8 | 749728c06877376dc1f77afb7c88c4e3 |
function SonifyExportWAV_Callback(hObject, eventdata, handles)
% Find the sonified signal
p = get(hObject, 'Parent');
h = findobj(p, 'Tag', 'SonifyButton');
dat = get(h, 'UserData');
if ~isempty(dat{1})
% Get the name of the file
[fName, pName] = uiputfile('*.wav', 'Save file as');
% Write wav file
wavwr... |
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyPlayInput_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyPlayInput_Callback.m | 1,351 | utf_8 | a5c4beb1dcf8bb855cc3ccfd7a8c07be |
%%%
function SonifyPlayInput_Callback(hObject, eventdata, handles)
% Assume the user has not clicked away in the file panel
strs = get(handles.OutputFilesList, 'String');
val = get(handles.OutputFilesList, 'Value');
str = get(hObject, 'String');
if ~isempty(findstr(str, 'Play'))
% We are asked to play
try
... |
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyUSePinkNoise_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyUSePinkNoise_Callback.m | 437 | utf_8 | 3b947bf96360f9d098ca6a7ada56666b | %
function SonifyUSePinkNoise_Callback(hObject, eventdata, handles)
p = get(hObject, 'Parent');
h(1) = findobj(p, 'Tag', 'freqTsObj');
h(2) = findobj(p, 'Tag', 'freqMax');
h(3) = findobj(p, 'Tag', 'freqMin');
val = get(hObject, 'Value');
if val == 0
set(h, 'Enable', 'on');
else
set(h, 'Enable', 'off');
end
... |
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyAddlevel_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyAddlevel_Callback.m | 950 | utf_8 | 10ca2baf03d98993df1d63de14700157 |
function SonifyAddlevel_Callback(hObject, eventdata, handles)
p = get(hObject, 'Parent');
DataChoice = get(handles.OutputDataObjectsList,'Value');
DataObjectChoice = get(handles.OutputDataObjectsList,'String');
% Remove some stuff
origStr = DataObjectChoice{DataChoice};
newStr = regexprep(origStr, 'timeserie... |
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyPlayOutput_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyPlayOutput_Callback.m | 643 | utf_8 | bd7efdb17f2a268dbb1e0663199c1bc9 |
function SonifyPlayOutput_Callback(hObject, eventdata, handles)
p = get(hObject, 'Parent');
h = findobj(p, 'Tag', 'SonifyButton');
dat = get(h, 'UserData');
if ~isempty(dat{1})
% Get the original string
str = get(hObject, 'String');
% Set to Playing...
set(hObject, 'String', 'Playing...');
pause(0.2);... |
github | rodrigo-garcia-leon/thesis-matlab-master | updateDurScFactor.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/updateDurScFactor.m | 266 | utf_8 | 4e34cbdbda757ea0362c1c5adf45e29f |
% Update duration stuff as soon as an Add is pressed
function updateDurScFactor(p)
% Get scaling factor from the GUI
h = findobj(p, 'Tag', 'outScFactor');
set(h, 'String', '-');
% Get the scaling type
h = findobj(p, 'Tag', 'outScFactorPopup');
set(h, 'Value', 1);
|
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyRemovelevel_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyRemovelevel_Callback.m | 309 | utf_8 | 2ddf5c6520047ccd7e3896fd99d46147 |
function SonifyRemovelevel_Callback(hObject, eventdata, handles)
p = get(hObject, 'Parent');
h = findobj(p, 'Tag', 'levelTsObj');
% Clear label and UserData
set(h, 'String', '');
set(h, 'UserData', []);
% Disable both min and max
h = findobj(p, '-regexp', 'Tag', 'level(Min|Max)');
set(h, 'Enable', 'off'); |
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyAddpan_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyAddpan_Callback.m | 907 | utf_8 | dbd5a5187cd1b893326ca50337171736 |
function SonifyAddpan_Callback(hObject, eventdata, handles)
p = get(hObject, 'Parent');
DataChoice = get(handles.OutputDataObjectsList,'Value');
DataObjectChoice = get(handles.OutputDataObjectsList,'String');
% Remove some stuff
origStr = DataObjectChoice{DataChoice};
newStr = regexprep(origStr, 'timeseries:... |
github | rodrigo-garcia-leon/thesis-matlab-master | findAllTsObjs.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/findAllTsObjs.m | 1,850 | utf_8 | 0fb30c3f86859ac77f20fdbc4db69a5b |
%%%%%%%%%%%%%%%%%%%
% Local functions %
%%%%%%%%%%%%%%%%%%%
% Retrieves all the timeseries objects for Sonification and
% packages them up in a cell array
function [tsArray, fs, minMax] = findAllTsObjs(p, handles, fName);
% Outputs
fs = [];
tsArray = {};
minMax = struct;
% Results list
resList = get(handles.Ou... |
github | rodrigo-garcia-leon/thesis-matlab-master | SonifyClearAll_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/SonifyClearAll_Callback.m | 519 | utf_8 | e2938b01642985bfa528289326410f44 |
function SonifyClearAll_Callback(hObject, eventdata, handles)
p = get(hObject, 'Parent');
% All min/max
h = findobj(p, '-regexp', 'Tag', '(freq|level|pan)(Min|Max)');
set(h, 'String', '0');
h = findobj(p, '-regexp', 'Tag', '(freq|level|pan)(TsObj)');
% Clear labels and UserData
set(h, 'String', '');
set(h, 'UserData... |
github | rodrigo-garcia-leon/thesis-matlab-master | Sonify_Callback.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@AuditoryGraphing/private/Sonify_Callback.m | 1,922 | utf_8 | 45262d8423a7b88a59378bfa9e9c4bf1 |
%%%%%%% Sonify
function Sonify_Callback(hObject, eventdata, handles)
hWait = waitbar(0, 'Sonification in progress. Please wait ...');
p = get(hObject, 'Parent');
% We have a valid time series name, lets figure out which file we
% came from
dataObjS = getDataObjectFromTreeNode(hObject, nodes(1));
% This is the fil... |
github | rodrigo-garcia-leon/thesis-matlab-master | analyse.m | .m | thesis-matlab-master/tb_PsySound32/DataAnalysers/@SpectralIndicators/analyse.m | 2,064 | utf_8 | 232082a1b61c5a516d81b7a5de7f3e15 | function out = analyse(obj, TSObj)
specdata = TSObj.DataObj.Data;
f = TSObj.DataObj.Freq;
t = TSObj.DataObj.Time;
%
[ER, SPR, Alpha, SB] = Spectrality(specdata, f, t);
out = {ER, SPR, Alpha, SB};
function [ER, SPR, Alpha, SB] = Spectrality(specdata, f, t)
% [ER, SPR, Centroid] = Spectrality(signal, Fs, measPer... |
github | rodrigo-garcia-leon/thesis-matlab-master | PostPropGUI.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/PostPropGUI.m | 21,740 | utf_8 | aa5de5b4938df136a293a8b4e48693e5 | function handles = PostPropGUI(handles, varargin)
% POSTPROPGUI Sets up the Post-processing Panel
%
import javax.swing.tree.*;
if nargin > 1
% We want to reset the tree
if varargin{1} == 1
theTree = handles.PostPropTree;
rootNode = theTree.getRoot;
if ~isempty (rootNode)
% Collapse the root node ... |
github | rodrigo-garcia-leon/thesis-matlab-master | runanalysisTest.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/runanalysisTest.m | 15,157 | utf_8 | ba4512519a6e2012ae06fa30e56b4136 | function out = runanalysis(fileHandles, analysers, syncPeriod, wH, varargin)
% RUNANALYSIS Run the specified Analysers for each of the file
% handles given
%
% This is the loop for Estimating how long these files will take to analyse.
%
% Output : TSTR - Structure with times for each file, analyser
% Inpu... |
github | rodrigo-garcia-leon/thesis-matlab-master | PostPropGUIBack.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/PostPropGUIBack.m | 17,350 | utf_8 | 3aac165d8bc408cac315eee9f640d2fa | function handles = PostPropGUI(handles, varargin)
% POSTPROPGUI Sets up the Post-processing Panel
%
if nargin > 1
% We want to reset the tree
if varargin{1} == 1
theTree = handles.PostPropTree;
rootNode = theTree.getRoot;
% Collapse the root node and set the loaded flag to false so
% that th... |
github | rodrigo-garcia-leon/thesis-matlab-master | runanalysisParr.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/runanalysisParr.m | 16,659 | utf_8 | 1841788f0a57803a5c63d117984ba425 | function out = runanalysisParr(fileHandles, analysers, syncPeriod, wH,parOnFiles,varargin)
% RUNANALYSIS Run the specified Analysers for each of the file
% handles given
%
% This is the special runanalysis file for parallell computing feature.
% The value of ParrOnFiles determines whether to do the parfor... |
github | rodrigo-garcia-leon/thesis-matlab-master | PsySoundGUI.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/PsySoundGUI.m | 62,268 | utf_8 | dba177b30231e465ab10b749c88f54fa | function varargout = PsySoundGUI(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @PsySoundGUI_OpeningFcn, ...
'gui_OutputFcn', @PsySoundGUI_OutputFcn, ...
... |
github | rodrigo-garcia-leon/thesis-matlab-master | runanalysisParr_backup.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/runanalysisParr_backup.m | 29,872 | utf_8 | fe86857093814632f22a120cfc6afdb4 | function out = runanalysisParr(fileHandles, analysers, syncPeriod, wH,parOnFiles,varargin)
% RUNANALYSIS Run the specified Analysers for each of the file
% handles given
%
% This is the special runanalysis file for parallell computing feature.
% The value of ParrOnFiles determines whether to do the parfor... |
github | rodrigo-garcia-leon/thesis-matlab-master | runanalysis.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/runanalysis.m | 14,630 | utf_8 | 61542775e349ca9943b6c3a895a61200 | function out = runanalysis(fileHandles, analysers, syncPeriod, wH, varargin)
% RUNANALYSIS Run the specified Analysers for each of the file
% handles given
%
% This is the loop for Estimating how long these files will take to analyse.
%
% Output : TSTR - Structure with times for each file, analyser
% Inpu... |
github | rodrigo-garcia-leon/thesis-matlab-master | changeSelectedFiles.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/private/changeSelectedFiles.m | 2,723 | utf_8 | 3eb2e36953cb0b17478dc02cc59568d1 | function handles = changeSelectedFiles(handles, varargin)
%% displays the Selected Files based on the information in handles.
%
% Controls the main table (handles.Table) and the calibration files list
% box (handles.CalFilesLeft). The display is simply updated with the
% current data, changing the actual data is done ... |
github | rodrigo-garcia-leon/thesis-matlab-master | PostPropGUI_2008.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/2008/PostPropGUI_2008.m | 19,447 | utf_8 | 14335400e9850fa5514514331c74ed47 | function handles = PostPropGUI_R2008b(handles, varargin)
% POSTPROPGUI Sets up the Post-processing Panel
%
import javax.swing.tree.*;
if nargin > 1
% We want to reset the tree
if varargin{1} == 1
theTree = handles.PostPropTree;
rootNode = theTree.getRoot;
% Collapse the root node and set the loa... |
github | rodrigo-garcia-leon/thesis-matlab-master | PostPropGUI_2006.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/2006/PostPropGUI_2006.m | 19,397 | utf_8 | f86b5d6e621eb2b3b53ade2c8dcd1b96 | function handles = PostPropGUI(handles, varargin)
% POSTPROPGUI Sets up the Post-processing Panel
%
import javax.swing.tree.*;
if nargin > 1
% We want to reset the tree
if varargin{1} == 1
theTree = handles.PostPropTree;
rootNode = theTree.getRoot;
% Collapse the root node and set the loaded fla... |
github | rodrigo-garcia-leon/thesis-matlab-master | PostPropGUI_2007.m | .m | thesis-matlab-master/tb_PsySound32/Framework/GUI/2007/PostPropGUI_2007.m | 19,474 | utf_8 | 8a27944aa3f430d3c372ae4399a65174 | function handles = PostPropGUI(handles, varargin)
% POSTPROPGUI Sets up the Post-processing Panel
%
import javax.swing.tree.*;
if nargin > 1
% We want to reset the tree
if varargin{1} == 1
theTree = handles.PostPropTree;
rootNode = theTree.getRoot;
% Collapse the root node and set the loaded fla... |
github | rodrigo-garcia-leon/thesis-matlab-master | calibrate.m | .m | thesis-matlab-master/tb_PsySound32/Framework/DSP/calibrate.m | 3,138 | utf_8 | 179abe526240c0f4b6fb4affc87205d0 | function [fhOut, mLevels, adjs] = calibrate(fhIn, type, varargin)
% CALIBRATE Adds calibration coeffecients to the the filehandles
%
% Input arguments
% fhIn - array of filehandle structs
% type - can be either 'WithFiles' or 'WithOutFiles'
%
% Rest as follows:
% ( ...'WithFiles', name_of_calib_f... |
github | rodrigo-garcia-leon/thesis-matlab-master | weightings.m | .m | thesis-matlab-master/tb_PsySound32/Framework/DSP/weightings.m | 8,346 | utf_8 | f65dbffd1bdde7697b634c853b794200 | function fHandles = weightings(N, Fs, weightingType)
% WEIGHTING
% Generates and applies the weighting filters to fileHandle.data
%
% For the theory behind this code, please refer to the document 'psy-sound.pdf'
%
% Author : Matt R. Flax <flatmax>
% Dec. 2006 for the psysound project.
% Revised : Farhan Rizwi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.