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 | jacksky64/imageProcessing-master | GUI_18.m | .m | imageProcessing-master/Matlab UI Examples/GUI_18.m | 1,578 | utf_8 | 5d1b116654e9c8c8c45890b3afb9fa45 | function [] = GUI_18()
% Demonstrate the use of the buttondownfcn for an axes.
% Clicking on the axes creates a random line. Note that clicking on the
% line does the same thing. This must be accounted for in the coding
% below, or clicking on the line would do nothing. Right click to delete
% the line.
%... |
github | jacksky64/imageProcessing-master | GUI_35.m | .m | imageProcessing-master/Matlab UI Examples/GUI_35.m | 4,421 | utf_8 | 1f9c2d3cb5f59e45e51321458670ffdd | function [] = GUI_35()
% Demonstrate how to use toggle buttons to mimic tabbed panels.
% Creates a GUI with three toggle buttons which act as tabs. One of the
% tabs is not selectable until the user plots a random quartic by
% pressing the pushbutton at the bottom of the screen. The middle tab
% shows the r... |
github | jacksky64/imageProcessing-master | GUI_14.m | .m | imageProcessing-master/Matlab UI Examples/GUI_14.m | 1,965 | utf_8 | 47c5253f9a3e32cb1d5d9ed19d2aff91 | function [] = GUI_14()
% Demonstrate colored text in a listbox, & how extract user's choice.
% Creates a listbox which has words of different colors. When the
% pushbutton is pushed, the users choice is printed to the screen.
% Notice the use of the 'listboxtop' property in the callback.
% This does NOT work in... |
github | jacksky64/imageProcessing-master | GUI_24.m | .m | imageProcessing-master/Matlab UI Examples/GUI_24.m | 2,382 | utf_8 | a24403d9b73017f965c99561a85505b5 | function [] = GUI_24()
% Demonstrate how to get data from one GUI to another (data passing).
% Creates a GUI with an editbox and a pushbutton. When the user presses
% the pushbutton, another GUI pops up with an editbox. Whatever is in the
% editbox of the second GUI when the user hits return will be put into ... |
github | jacksky64/imageProcessing-master | GUI_29.m | .m | imageProcessing-master/Matlab UI Examples/GUI_29.m | 1,693 | utf_8 | 577601b33f7fb91dd9b5df82ed2c1ea9 | function [] = GUI_29()
% Demonstrate the use of a uicontrol to manipulate an axes from a GUI,
% and how to link two figures to close together.
% The slider here controls the extent of the x lims up to a certain point.
%
% Suggested exercise: Alter the code so that an axes handle could be passed
% in as an argum... |
github | jacksky64/imageProcessing-master | GUI_28.m | .m | imageProcessing-master/Matlab UI Examples/GUI_28.m | 2,253 | utf_8 | 874f0e66c524f1f9599e157001065e7e | function [] = GUI_28()
% Demonstrate uicontextmenu for an axes click.
% Clicking on the axes plots a single point. After plotting as many points
% as desired, the user may click in the axes to access two options
% concerning the plotted points.
%
% Suggested exercise: Add another menu to the context menu which
... |
github | jacksky64/imageProcessing-master | UiMain.m | .m | imageProcessing-master/Matlab UI Examples/UiMain.m | 7,463 | utf_8 | c3008a7b6fe35b399f8737898e26cc99 | function varargout = UiMain(varargin)
% UIMAIN MATLAB code for UiMain.fig
% UIMAIN, by itself, creates a new UIMAIN or raises the existing
% singleton*.
%
% H = UIMAIN returns the handle to a new UIMAIN or the handle to
% the existing singleton*.
%
% UIMAIN('CALLBACK',hObject,eventData,handles,... |
github | jacksky64/imageProcessing-master | GUI_27.m | .m | imageProcessing-master/Matlab UI Examples/GUI_27.m | 2,495 | utf_8 | 01b2f9b97ba9aa9827a2990eb59df25a | function [] = GUI_27()
% Demonstrate how to display the current location of the mouse in an axes.
% Run the GUI then move the cursor over the axes. The current location of
% the pointer in the axes will be displayed at the top of the plot, in axes
% units.
%
% Suggested exercise: Make this function to take an ... |
github | jacksky64/imageProcessing-master | GUI_4.m | .m | imageProcessing-master/Matlab UI Examples/GUI_4.m | 2,123 | utf_8 | 32582b41a4cd6667c86782f8ff1bd51d | function [] = GUI_4()
% Demonstrate how to make a multiline editbox.
% Produces a GUI with an editbox on the left and a listbox on the right.
% The user is invited to enter text into the editbox, either hitting return
% at the end of each line or letting it wrap automatically. When the
% button is pushed, each li... |
github | jacksky64/imageProcessing-master | GUI_12.m | .m | imageProcessing-master/Matlab UI Examples/GUI_12.m | 1,271 | utf_8 | 5740de8d4611642251d43dd181967882 | function [] = GUI_12()
% Demonstrate how to control the mouse pointer from a GUI.
% Just for fun, show how to manipulate the mouse pointer. To close the
% figure, use the regular window x in the upper right corner.
% Note, I have had reports that nothing happens when this is run on Mac
% computers.
%
% Author:... |
github | jacksky64/imageProcessing-master | GUI_7.m | .m | imageProcessing-master/Matlab UI Examples/GUI_7.m | 1,564 | utf_8 | 69bec55c368307c5844df39b23ef47c6 | function [] = GUI_7()
% Demonstrate how to store choice counters for multiple user choices.
% Creates a popup with two choices and a textbox to display the number of
% times each choice has been made.
%
%
% Author: Matt Fig
% Date: 7/15/2009
S.fh = figure('units','pixels',...
'position',... |
github | jacksky64/imageProcessing-master | GUI_21.m | .m | imageProcessing-master/Matlab UI Examples/GUI_21.m | 1,728 | utf_8 | 21393eee213bf28e8eb3a5dfa563efe7 | function [] = GUI_21()
% Demonstrate how to get selection from a popup to an edit box & vis versa.
% This is an expansion of GUI_20. Here we will enforce a specific list of
% choices so that any text the user enters into the editbox which is not a
% choice in the popup will be overwritten.
%
%
% Author: Ma... |
github | jacksky64/imageProcessing-master | GUI_26.m | .m | imageProcessing-master/Matlab UI Examples/GUI_26.m | 3,675 | utf_8 | be33aa9ec8e75f57511c587d1df4f065 | function [] = GUI_26()
% Demonstrate how to make the choices in several popups mutually exclusive.
% Here we want three popups, with which the user can make three different
% choices from the same set of choices. We want the users choices to be
% made in any order. Once a certain value has been chosen through a p... |
github | jacksky64/imageProcessing-master | GUI_31.m | .m | imageProcessing-master/Matlab UI Examples/GUI_31.m | 3,576 | utf_8 | 93ebb5ecf307eb46c48da9107cfa2c37 | function [] = GUI_31()
% Demonstrate multiple uicontrol manipulations based on user choices.
% Creates a simple calculator which allows the user to make a choice of
% operations to use, as well as to enter numbers on which to operate.
% Notice that the static textbox will update to show which operation is
% curren... |
github | jacksky64/imageProcessing-master | GUI_13.m | .m | imageProcessing-master/Matlab UI Examples/GUI_13.m | 1,730 | utf_8 | ebc363d98dd0c27fd9c73aadd9e13bb2 | function [] = GUI_13()
% Demonstrate how to display & change a slider's position with an edit box.
% Slide the slider and it's position will be shown in the editbox.
% Enter a valid number in the editbox and the slider will be moved to that
% position. If the number entered is outside the range of the slider,... |
github | jacksky64/imageProcessing-master | GUI_32.m | .m | imageProcessing-master/Matlab UI Examples/GUI_32.m | 4,357 | utf_8 | 42de6df214b8d88a186603d8aaef6257 | function [] = GUI_32(str)
% Demonstrate how to get data from a GUI into the base workspace without
% "poofing" unawares. This is based on GUI_31. When called with a string
% argument, all of the operations performed by the user will be recorded
% and returned to the base workspace in a variable of the name given... |
github | jacksky64/imageProcessing-master | GUI_33.m | .m | imageProcessing-master/Matlab UI Examples/GUI_33.m | 4,321 | utf_8 | e186426586a4268ad76582e4859822c6 | function [] = GUI_33()
% Demonstrate how to export data with context menu.
% Demonstrate how to get data from a GUI into the base workspace without
% "poofing" unawares. This is based on GUI_31. When user is ready to
% retrieve the data, simply right-click anywhere inside the figure to get
% to the context menu... |
github | jacksky64/imageProcessing-master | GUI_22.m | .m | imageProcessing-master/Matlab UI Examples/GUI_22.m | 1,928 | utf_8 | a5cb0a1c676409bd72fe711b9e4169cb | function [] = GUI_22()
% Demonstrate how to get selection from a popup to an edit box & vis versa.
% This is an expansion of GUI_20. Here we will not enforce a specific list
% of choices so that any text the user enters into the editbox will be
% added to the popup list if it is not already there.
%
%
% Auth... |
github | jacksky64/imageProcessing-master | GUI_3.m | .m | imageProcessing-master/Matlab UI Examples/GUI_3.m | 1,541 | utf_8 | d3fd0091e8f1cf8142980cd48db68289 | function [] = GUI_3()
% Demonstrate how to hide a uicontrol from the user.
% Creates a textbox and a checkbox. The state of the checkbox determines
% whether or not the textbox is visible.
%
%
% Author: Matt Fig
% Date: 7/15/2009
S.fh = figure('units','pixels',...
'position',[300 300 200 ... |
github | jacksky64/imageProcessing-master | GUI_25.m | .m | imageProcessing-master/Matlab UI Examples/GUI_25.m | 3,018 | utf_8 | 1b008e30b7eb2b222dd92dc3b2e5c22f | function [] = GUI_25()
% Demonstrate how to make an image loader.
% Creates a GUI which looks for files with the extention .jpg in the
% current directory. A listbox is populated with the names of all such
% files, and is empty if none exist in the current directory. When the
% pushbutton is activated, the curr... |
github | jacksky64/imageProcessing-master | image_compare_tool.m | .m | imageProcessing-master/imagecompare/image_compare_tool.m | 1,897 | utf_8 | d5ce0339bf9a468a84b11ece78f99394 |
function image_compare_tool(left_image, right_image)
% Create the figure
hFig = figure('Toolbar','none',...
'Menubar','none',...
'Name','Image Compare Tool',...
'NumberTitle','off',...
'IntegerHandle','off');
% Display left image ... |
github | jacksky64/imageProcessing-master | GaborFilterDesighnNik.m | .m | imageProcessing-master/gaborFilterDesign/GaborFilterDesighnNik.m | 34,966 | utf_8 | 9f7447b4806b3da2d5248db380c94a09 | function varargout = GaborFilterDesighnNik(varargin)
%%
%function varargout = GaborFilterDesighnNik(varargin)
%
% Functional purpose: I've made this GUI for a couple of students, which were learning the Gabor Filtering, and had hard
% time to understand the sunbject. This helped them to get some intuition about what G... |
github | jacksky64/imageProcessing-master | smoothn.m | .m | imageProcessing-master/smoothn/smoothn.m | 26,704 | utf_8 | f99199dd381890addc2512f2f23899cc | function [z,s,exitflag] = smoothn(varargin)
%SMOOTHN Robust spline smoothing for 1-D to N-D data.
% SMOOTHN provides a fast, automatized and robust discretized spline
% smoothing for data of arbitrary dimension.
%
% Z = SMOOTHN(Y) automatically smoothes the uniformly-sampled array Y. Y
% can be any N-D ... |
github | jayinai/pva-faster-rcnn-master | voc_eval.m | .m | pva-faster-rcnn-master/lib/datasets/VOCdevkit-matlab-wrapper/voc_eval.m | 1,332 | utf_8 | 3ee1d5373b091ae4ab79d26ab657c962 | function res = voc_eval(path, comp_id, test_set, output_dir)
VOCopts = get_voc_opts(path);
VOCopts.testset = test_set;
for i = 1:length(VOCopts.classes)
cls = VOCopts.classes{i};
res(i) = voc_eval_cls(cls, VOCopts, comp_id, output_dir);
end
fprintf('\n~~~~~~~~~~~~~~~~~~~~\n');
fprintf('Results:\n');
aps = [res(:... |
github | OpenDataCyprus/dland-master | savejson.m | .m | dland-master/supporting_scripts/matlab-tools/jsonlab-1.2/jsonlab/savejson.m | 18,983 | utf_8 | 2f510ad749556cadd303786e2549f30a | function json=savejson(rootname,obj,varargin)
%
% json=savejson(rootname,obj,filename)
% or
% json=savejson(rootname,obj,opt)
% json=savejson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a JSON (JavaScript
% Object Notation) string
%
% author: Qianqian Fa... |
github | OpenDataCyprus/dland-master | loadjson.m | .m | dland-master/supporting_scripts/matlab-tools/jsonlab-1.2/jsonlab/loadjson.m | 16,145 | ibm852 | 7582071c5bd7f5e5f74806ce191a9078 | function data = loadjson(fname,varargin)
%
% data=loadjson(fname,opt)
% or
% data=loadjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2011/09/09, including previous works from
%
% ... |
github | OpenDataCyprus/dland-master | loadubjson.m | .m | dland-master/supporting_scripts/matlab-tools/jsonlab-1.2/jsonlab/loadubjson.m | 13,300 | utf_8 | b15e959f758c5c2efa2711aa79c443fc | function data = loadubjson(fname,varargin)
%
% data=loadubjson(fname,opt)
% or
% data=loadubjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2013/08/01
%
% $Id$
%
% input:
% fname: ... |
github | OpenDataCyprus/dland-master | saveubjson.m | .m | dland-master/supporting_scripts/matlab-tools/jsonlab-1.2/jsonlab/saveubjson.m | 17,723 | utf_8 | 3414421172c05225dfbd4a9c8c76e6b3 | function json=saveubjson(rootname,obj,varargin)
%
% json=saveubjson(rootname,obj,filename)
% or
% json=saveubjson(rootname,obj,opt)
% json=saveubjson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a Universal
% Binary JSON (UBJSON) binary string
%
% author... |
github | jacoxu/2016NLPCC_Stance_Detection-master | LGE.m | .m | 2016NLPCC_Stance_Detection-master/code/LSA_and_LPI_and_LE_matlab/LPI/LGE.m | 8,862 | utf_8 | d32a983d6516d8bc40b016ed26d59a7e | function [eigvector, eigvalue] = LGE(W, D, options, data)
% LGE: Linear Graph Embedding
%
% [eigvector, eigvalue] = LGE(W, D, options, data)
%
% Input:
% data - data matrix. Each row vector of data is a
% sample vector.
% W - Affinity g... |
github | martinarielhartmann/mirtooloct-master | SetGain.m | .m | mirtooloct-master/AuditoryToolbox/SetGain.m | 316 | utf_8 | ee1086fa88ad33019c0d5f97fbe4fc80 | % filter = SetGain(filter, desired, f, fs)
% Set the gain of a filter (1x5 vector) to any desired gain
% at any desired frequency (f).
% (c) 1998 Interval Research Corporation
function filter = SetGain(filter, desired, f, fs)
oldGain = 10^(FreqResp(filter, f, fs)/20);
filter(1:3) = filter(1:3)*desired/oldGain;
|
github | martinarielhartmann/mirtooloct-master | FreqResp.m | .m | mirtooloct-master/AuditoryToolbox/FreqResp.m | 358 | utf_8 | 126f81f4aebfed2dcb78c606fdf26621 | % mag = FreqResp(filter, f, fs)
% Find the frequency response (in dB) of a filter (1x5 vector) at
% frequency f and sampling rate fs.
% (c) 1998 Interval Research Corporation
function mag=FreqResp(filter,f,fs)
cf = exp(i*2*pi*f/fs);
mag = (filter(3) + filter(2)*cf + filter(1)*cf.^2) ./ ...
(filter(5) + filter(4)*c... |
github | martinarielhartmann/mirtooloct-master | SecondOrderFilter.m | .m | mirtooloct-master/AuditoryToolbox/SecondOrderFilter.m | 401 | utf_8 | d07f8051e149ab98df3ca36bc12a0ab6 | % filter = SecondOrderFilter(f, q, fs)
% Design a second order digital filter with a center frequency of
% f, filter quality of q, and digital sampling rate of fs (Hz).
% (c) 1998 Interval Research Corporation
function filts = SecondOrderFilter(f,q,fs)
cft = f'/fs;
rho = exp(- pi * cft ./ q');
theta = 2 * pi * cft ... |
github | martinarielhartmann/mirtooloct-master | test_auditory.m | .m | mirtooloct-master/AuditoryToolbox/test_auditory.m | 8,929 | utf_8 | 37ff5eae38fd9f5b0a042b478a00d417 | function test_auditory(test)
% function test_auditory(test)
% Test each of the functions in the Auditory Toolbox. The single argument
% is a string, containing the word 'all' or the name of one routine from the
% toolbox. This routine defaults to running all tests. There is a pause after
% each plot, so be sure to h... |
github | martinarielhartmann/mirtooloct-master | CorrelogramFrame.m | .m | mirtooloct-master/AuditoryToolbox/CorrelogramFrame.m | 1,672 | utf_8 | f5b29d74df1508458ae5f23c6cfda1b8 | % pic = CorrelogramFrame(data, picWidth, start, winLen)
% Compute one frame of a correlogram. The input data is a
% two-dimensional array of cochlear data, each row representing
% firing probabilities from one cochlear channel. The output
% picture is a two dimensional array of width "picWidth".
%
% The correlogram i... |
github | martinarielhartmann/mirtooloct-master | mfcc.m | .m | mirtooloct-master/AuditoryToolbox/mfcc.m | 6,320 | utf_8 | e2a5640478ad49e3a283d3d1115bbf04 | % mfcc - Mel frequency cepstrum coefficient analysis.
% [ceps,freqresp,fb,fbrecon,freqrecon] = ...
% mfcc(input, samplingRate, [frameRate])
% Find the cepstral coefficients (ceps) corresponding to the
% input. Four other quantities are optionally returned that
% represent:
% the detailed fft magnitude (freqresp) ... |
github | martinarielhartmann/mirtooloct-master | WhiteVowel.m | .m | mirtooloct-master/AuditoryToolbox/WhiteVowel.m | 2,857 | utf_8 | 0fc089b7af863423555a4e18c36ece15 | function [output,aCoeff] = WhiteVowel(data,sr,L,pos)
% function [output,aCoeff] = WhiteVowel(data,sr,L,pos)
%
% Speech is often described as having spectral peaks or formants which
% identify the phonetic signal. An interesting experiment, first proposed by
% XXX, filters a speech signal to remove all the formant info... |
github | martinarielhartmann/mirtooloct-master | DesignLyonFilters.m | .m | mirtooloct-master/AuditoryToolbox/DesignLyonFilters.m | 3,715 | utf_8 | d1cdd19256fb6f4bf37de7636ad0f226 | % [filters, freqs] = DesignLyonFilters(fs,EarQ,StepFactor)
% Design the cascade of second order filters and the front filters
% (outer/middle and compensator) needed for Lyon's Passive Short Wave
% (Second Order Sections) cochlear model. The variables used here come
% from Apple ATG Technical Report #13 titled "Lyon's... |
github | martinarielhartmann/mirtooloct-master | SeneffEarSetup.m | .m | mirtooloct-master/AuditoryToolbox/SeneffEarSetup.m | 8,431 | utf_8 | c6d0292c56280a4d247f48c023187c6f | function [SeneffPreemphasis, SeneffFilterBank, SeneffForward, SeneffBackward] ...
= SeneffEarSetup(fs)
% This m-function is based on data from the following paper:
% Benjamin D. Bryant and John D. Gowdy, "Simulation of Stages
% I and II of Seneff's Auditory Model (SAM) Using Matlab", and
% published in the Proc... |
github | martinarielhartmann/mirtooloct-master | mirdecreaseslope.m | .m | mirtooloct-master/MIRToolbox/mirdecreaseslope.m | 3,058 | utf_8 | 920edc53acc219af8f32e695e16db0c3 | function varargout = mirdecreaseslope(orig,varargin)
% a = mirattackslope(x) estimates the average slope of each note attack.
% Values are expressed in the same scale than the original signal,
% but normalised by time in seconds.
% Optional arguments:
% a = mirattackslope(x,m) specifies a method for s... |
github | martinarielhartmann/mirtooloct-master | mirattackslope.m | .m | mirtooloct-master/MIRToolbox/mirattackslope.m | 3,344 | utf_8 | c1ae3e613ee78509e576de00df491848 | function varargout = mirattackslope(orig,varargin)
% a = mirattackslope(x) estimates the average slope of each note attack.
% Values are expressed in the same scale than the original signal,
% but normalised by time in seconds.
% Optional arguments:
% a = mirattackslope(x,m) specifies a method for slo... |
github | martinarielhartmann/mirtooloct-master | mirinharmonicity.m | .m | mirtooloct-master/MIRToolbox/mirinharmonicity.m | 4,045 | utf_8 | 0694141a4a821cbd7da88eb33ab9691d | 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 | martinarielhartmann/mirtooloct-master | mirplay.m | .m | mirtooloct-master/MIRToolbox/mirplay.m | 7,791 | utf_8 | c1b6dfd6436bb3a647097f575c478056 | 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 | martinarielhartmann/mirtooloct-master | mirpeaks.m | .m | mirtooloct-master/MIRToolbox/mirpeaks.m | 59,750 | utf_8 | 4a36bc7f0d4dad5116030909c0f65dca | 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 | martinarielhartmann/mirtooloct-master | mirroughness.m | .m | mirtooloct-master/MIRToolbox/mirroughness.m | 4,303 | utf_8 | 16c3687ea66082d446f11b615c72a443 | 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 | martinarielhartmann/mirtooloct-master | mirfluctuation.m | .m | mirtooloct-master/MIRToolbox/mirfluctuation.m | 4,524 | utf_8 | bceb1ff305659e1156a294910325c9ab | function varargout = mirfluctuation(orig,varargin)
% f = mirfluctuation(x) calculates the fluctuation strength, indicating
% the rhythmic periodicities along the different channels.
% Optional arguments:
% mirfluctuation(...,'MinRes',mr) specifies the minimal frequency
% resolution of the resu... |
github | martinarielhartmann/mirtooloct-master | mirstd.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirfeatures.m | .m | mirtooloct-master/MIRToolbox/mirfeatures.m | 4,420 | utf_8 | 66e50462e85b091a22d7aafb3a72c400 | 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 | martinarielhartmann/mirtooloct-master | mirfunction.m | .m | mirtooloct-master/MIRToolbox/mirfunction.m | 7,438 | utf_8 | 022bac1efaf28f4badabfaa0eb4ba0a8 | 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 | martinarielhartmann/mirtooloct-master | mirframe.m | .m | mirtooloct-master/MIRToolbox/mirframe.m | 13,483 | utf_8 | 67e4955e693f53ac79b5e4520b3d7198 | 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 | martinarielhartmann/mirtooloct-master | mirexport.m | .m | mirtooloct-master/MIRToolbox/mirexport.m | 11,415 | utf_8 | cd8a7963e667f6bc41be6b8f306c8882 | 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 | martinarielhartmann/mirtooloct-master | mirrms.m | .m | mirtooloct-master/MIRToolbox/mirrms.m | 1,741 | utf_8 | 6e4442b73eeb6ed66bad3386b9f1059a | 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.
notchunking.type = 'Boolean';
notchunking.when = 'After';
notchunking.default = 1;
option.notc... |
github | martinarielhartmann/mirtooloct-master | mirpulseclarity.m | .m | mirtooloct-master/MIRToolbox/mirpulseclarity.m | 14,197 | utf_8 | 73a2c53e476d619b3a505e7bb4bf038b | 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 | martinarielhartmann/mirtooloct-master | mirflatness.m | .m | mirtooloct-master/MIRToolbox/mirflatness.m | 2,139 | utf_8 | afd526e25826dda99d62b918bd5d0a27 | 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.
minrms.key = 'MinRMS';
minrms.when = 'After';
minrms.type = ... |
github | martinarielhartmann/mirtooloct-master | mirhcdf.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirrolloff.m | .m | mirtooloct-master/MIRToolbox/mirrolloff.m | 2,405 | utf_8 | 969a183f15d02c00dfb987d1237ec4b9 | 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 | martinarielhartmann/mirtooloct-master | mp3write.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | aiffread.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mireval.m | .m | mirtooloct-master/MIRToolbox/mireval.m | 11,804 | utf_8 | 4eacc02021f6cd564db73d97187f9875 | 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 | martinarielhartmann/mirtooloct-master | mirmode.m | .m | mirtooloct-master/MIRToolbox/mirmode.m | 1,291 | utf_8 | 0b956b8a46df510afed36b5b138ecdb2 | 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 | martinarielhartmann/mirtooloct-master | mirstat.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirlength.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirzerocross.m | .m | mirtooloct-master/MIRToolbox/mirzerocross.m | 2,298 | utf_8 | 26d2924ca563e0f4eac9d3f2b5793858 | 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 | martinarielhartmann/mirtooloct-master | mp3read.m | .m | mirtooloct-master/MIRToolbox/mp3read.m | 12,209 | utf_8 | b0b052ee491ef354631f3eaad6bbc0f7 | 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 | martinarielhartmann/mirtooloct-master | convolve2.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirkurtosis.m | .m | mirtooloct-master/MIRToolbox/mirkurtosis.m | 1,110 | utf_8 | a1f7b0edb45216089fdc8d17f29fa799 | 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 | martinarielhartmann/mirtooloct-master | mirflux.m | .m | mirtooloct-master/MIRToolbox/mirflux.m | 14,091 | utf_8 | 9718f5621e82c5f247eeea63a085f39f | 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 | martinarielhartmann/mirtooloct-master | isamir.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirskewness.m | .m | mirtooloct-master/MIRToolbox/mirskewness.m | 1,074 | utf_8 | 364ec04fe20b324d19216272e36dbe4e | 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 | martinarielhartmann/mirtooloct-master | mirattackleap.m | .m | mirtooloct-master/MIRToolbox/mirattackleap.m | 1,995 | utf_8 | e307b35dab8a2b6e3325a4d18ab9a86c | function varargout = mirattackleap(orig,varargin)
% a = mirattackleap(x) estimates the leap of each note attack.
% Values are expressed in the same scale than the original signal.
% Optional arguments:
% mirattackleap(...,'Contrast',c) specifies the 'Contrast' parameter
% used in mironsets for event d... |
github | martinarielhartmann/mirtooloct-master | mirfilterbank.m | .m | mirtooloct-master/MIRToolbox/mirfilterbank.m | 13,869 | utf_8 | 6dabae33d58255019308b5808ca8d34f | 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 | martinarielhartmann/mirtooloct-master | mirharmonicity.m | .m | mirtooloct-master/MIRToolbox/mirharmonicity.m | 2,940 | utf_8 | ba5a2677382e4fe554d91904f000d2d3 | function varargout = mirharmonicity(orig,varargin)
frame.key = 'Frame';
frame.type = 'Integer';
frame.number = 2;
frame.default = [0 0];
frame.keydefault = [.1 .025];
option.frame = frame;
specif.option = option;
varargout = mirfunction(@mirharmonicity,orig,va... |
github | martinarielhartmann/mirtooloct-master | mirread2014.m | .m | mirtooloct-master/MIRToolbox/mirread2014.m | 5,612 | utf_8 | 0834239f85502c1063d7246164c71cd0 | function [d,tp,fp,f,l,b,n,ch] = mirread2014(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 consider... |
github | martinarielhartmann/mirtooloct-master | pluscell.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirmedian.m | .m | mirtooloct-master/MIRToolbox/mirmedian.m | 2,776 | utf_8 | 28428cd9fc147e21412168f1a226c8c1 | function varargout = mirmedian(f,varargin)
% m = mirmedian(f) returns the median 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} = m... |
github | martinarielhartmann/mirtooloct-master | mtimescell.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | maxcell.m | .m | mirtooloct-master/MIRToolbox/maxcell.m | 268 | utf_8 | 95ea81e59ab86695378063af0e68208a | function varargout = maxcell(x,varargin)
specif.combinechunk = 'Average';
varargout = mirfunction(@maxcell,x,varargin,nargout,specif,@init,@main);
function [x type] = init(x,option)
type = mirtype(a{1});
function y = main(x,option,postoption)
y = max(x{1},x{2}); |
github | martinarielhartmann/mirtooloct-master | mirbeatspectrum.m | .m | mirtooloct-master/MIRToolbox/mirbeatspectrum.m | 2,388 | utf_8 | 64687e175e19c6e8b154c4fe557e190c | 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 | martinarielhartmann/mirtooloct-master | mirsegment.m | .m | mirtooloct-master/MIRToolbox/mirsegment.m | 19,232 | utf_8 | 1f3a212fffc5cc7346fe3f2283271b8c | 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 | martinarielhartmann/mirtooloct-master | mircentroid.m | .m | mirtooloct-master/MIRToolbox/mircentroid.m | 3,220 | utf_8 | a86a35685785ce380a1e68dc10219b92 | 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 | martinarielhartmann/mirtooloct-master | mirbrightness.m | .m | mirtooloct-master/MIRToolbox/mirbrightness.m | 2,411 | utf_8 | e606c2a0139812150d9ca8ad065f1149 | 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 | martinarielhartmann/mirtooloct-master | nthoutput.m | .m | mirtooloct-master/MIRToolbox/nthoutput.m | 440 | utf_8 | 319f756e43e6a02e1cf1c3868c4da5be | 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);
if iscell(t... |
github | martinarielhartmann/mirtooloct-master | mirmap.m | .m | mirtooloct-master/MIRToolbox/mirmap.m | 9,257 | utf_8 | e2f934119eadec0f16f594bc8b212468 | 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 | martinarielhartmann/mirtooloct-master | mirsum.m | .m | mirtooloct-master/MIRToolbox/mirsum.m | 5,221 | utf_8 | c32347b96fc7dde3df06fc81737c6298 | function varargout = mirsum(orig,varargin)
% s = mirsum(f) sums the channels together
%
% 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 = 'Centered';
c.... |
github | martinarielhartmann/mirtooloct-master | mironsets.m | .m | mirtooloct-master/MIRToolbox/mironsets.m | 33,222 | utf_8 | 5f4967930b6c3ac6998051ef4af37132 | 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 | martinarielhartmann/mirtooloct-master | mirspread.m | .m | mirtooloct-master/MIRToolbox/mirspread.m | 1,555 | utf_8 | 28dd29263e34084b9b2f6fb8048a491b | 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.
minrms.key = 'MinRMS';
minrms.when = 'After';
minrms.type = 'Numerical... |
github | martinarielhartmann/mirtooloct-master | mirevalaudiofile.m | .m | mirtooloct-master/MIRToolbox/mirevalaudiofile.m | 3,801 | utf_8 | c09f3cb5a3481874003dc3510acecedf | function v = mirevalaudiofile(d,file,sampling,lg,size,struc,istmp,index,single,name,ch)
% Now let's perform the analysis (or analyses) on the different files.
% If d is a structure or a cell array, evaluate each component
% separately.
if isstruct(d)
v = struct;
if istmp
struc.tmp = struct;
... |
github | martinarielhartmann/mirtooloct-master | mirread.m | .m | mirtooloct-master/MIRToolbox/mirread.m | 4,072 | utf_8 | ed5bcdb732a2c0efcfddd1c0f256ce5d | 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 | martinarielhartmann/mirtooloct-master | mirregularity.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirduration.m | .m | mirtooloct-master/MIRToolbox/mirduration.m | 2,222 | utf_8 | 8e5afd3732c22e6a8810ac31d3a9464e | function varargout = mirduration(orig,varargin)
% a = mirduration(x) estimates the duration of each note.
% Optional arguments:
% mirduration(...,'Contrast',c) specifies the 'Contrast' parameter
% used in mironsets for event detection through peak picking.
% Same default value as in mironsets.
% mir... |
github | martinarielhartmann/mirtooloct-master | mireventdensity.m | .m | mirtooloct-master/MIRToolbox/mireventdensity.m | 3,309 | utf_8 | 6c96ecdc4004805119c526b5425c5e3b | 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 | martinarielhartmann/mirtooloct-master | mirentropy.m | .m | mirtooloct-master/MIRToolbox/mirentropy.m | 2,342 | utf_8 | cdbe494a127b13af646739742ce96e90 | 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 | martinarielhartmann/mirtooloct-master | mirauditory.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirlowenergy.m | .m | mirtooloct-master/MIRToolbox/mirlowenergy.m | 2,548 | utf_8 | ab6f593caf368195ea6bd30902781123 | 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 | martinarielhartmann/mirtooloct-master | mirmean.m | .m | mirtooloct-master/MIRToolbox/mirmean.m | 2,762 | utf_8 | 6ba3411721923cf88292d17bf0aa2c30 | 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 | martinarielhartmann/mirtooloct-master | mirattacks.m | .m | mirtooloct-master/MIRToolbox/mirattacks.m | 613 | utf_8 | 3ca968e23cc9edf7dec8557116e3993e | function varargout = mirattacks(orig,varargin)
% Obsolete function, replaced by mironsets(...,'Attacks',...)
aver.key = 'Smooth';
aver.type = 'Integer';
aver.default = 20;
option.aver = aver;
single.key = 'Single';
single.type = 'Boolean';
single.default = 0... |
github | martinarielhartmann/mirtooloct-master | mirkey.m | .m | mirtooloct-master/MIRToolbox/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 | martinarielhartmann/mirtooloct-master | mirmfcc.m | .m | mirtooloct-master/MIRToolbox/@mirmfcc/mirmfcc.m | 5,499 | utf_8 | 9235c66ed6553be6f816a0f4e08074f4 | function varargout = mirmfcc(orig,varargin)
% c = mirmfcc(a) finds the Mel frequency cepstral coefficients (ceps),
% a numerical description of the spectrum envelope.
%
% Requires the Auditory Toolbox.
%
% Optional arguments:
% c = mirmfcc(...,'Rank',N) computes the coefficients of rank(s) N
% ... |
github | martinarielhartmann/mirtooloct-master | mirkeysom.m | .m | mirtooloct-master/MIRToolbox/@mirkeysom/mirkeysom.m | 2,211 | utf_8 | fb4c7b52a6cc328421592d39e5568220 | function varargout = mirkeysom(orig,varargin)
% ks = mirkeysom(x) projects a chromagram on a self-organizing map.
% Creates a pseudocolor map showing the projection of chromagram onto a
% self-organizing map trained with the Krumhansl-Kessler profiles (modified
% for chromagrams). Colors correspond to Pearson correl... |
github | martinarielhartmann/mirtooloct-master | mirmetre.m | .m | mirtooloct-master/MIRToolbox/@mirmetre/mirmetre.m | 52,481 | utf_8 | 1cb56ac02c3f2268bafcc13f3b2a073a | function varargout = mirmetre(orig,varargin)
% m = mirmetre(x) provides a detailed description of the hierarchical
% metrical structure by detecting periodicities from the onset
% detection curve and tracking a broad set of metrical levels.
%
% When mirmetre is used for academic research, please cite th... |
github | martinarielhartmann/mirtooloct-master | get.m | .m | mirtooloct-master/MIRToolbox/@mirdesign/get.m | 4,242 | utf_8 | 83638fe1ced39af50e3243751684b616 | function varargout = get(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 'Fram... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.