comparison src/matlab/SynthesisCache.m @ 0:c52bc3e8d3ad tip

user: boblsturm branch 'default' added README.md added assets/.DS_Store added assets/playButton.jpg added assets/stopButton.png added assets/swapButton.jpg added data/.DS_Store added data/fiveoctaves.mp3 added data/glock2.wav added data/sinScale.mp3 added data/speech_female.mp3 added data/sweep.wav added nimfks.m.lnk added src/.DS_Store added src/matlab/.DS_Store added src/matlab/AnalysisCache.m added src/matlab/CSS.m added src/matlab/DataHash.m added src/matlab/ExistsInCache.m added src/matlab/KLDivCost.m added src/matlab/LoadFromCache.m added src/matlab/SA_B_NMF.m added src/matlab/SaveInCache.m added src/matlab/Sound.m added src/matlab/SynthesisCache.m added src/matlab/chromagram_E.m added src/matlab/chromagram_IF.m added src/matlab/chromagram_P.m added src/matlab/chromsynth.m added src/matlab/computeSTFTFeat.m added src/matlab/controller.m added src/matlab/decibelSliderReleaseCallback.m added src/matlab/drawClickCallBack.m added src/matlab/fft2chromamx.m added src/matlab/hz2octs.m added src/matlab/ifgram.m added src/matlab/ifptrack.m added src/matlab/istft.m added src/matlab/nimfks.fig added src/matlab/nimfks.m added src/matlab/nmfFn.m added src/matlab/nmf_beta.m added src/matlab/nmf_divergence.m added src/matlab/nmf_euclidean.m added src/matlab/prune_corpus.m added src/matlab/rot_kernel.m added src/matlab/templateAdditionResynth.m added src/matlab/templateDelCb.m added src/matlab/templateScrollCb.m
author boblsturm
date Sun, 18 Jun 2017 06:26:13 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c52bc3e8d3ad
1 classdef SynthesisCache < handle
2 properties
3 Iterations
4 Seed
5 Convergence
6 CostMetric
7 RepRestrict
8 PolyRestrict
9 ContRestrict
10 DiagPattern
11 Rotation
12 Endtime
13 Lambda
14 Prune
15 Hash
16 AnalysisHash
17 end
18
19 methods
20 function obj = SynthesisCache(varargin)
21 if nargin == 13
22 obj.Iterations = varargin{1};
23 obj.Seed = varargin{2};
24 obj.Convergence = varargin{3};
25 obj.CostMetric = varargin{4};
26 obj.RepRestrict = varargin{5};
27 obj.PolyRestrict = varargin{6};
28 obj.ContRestrict = varargin{7};
29 obj.DiagPattern = varargin{8};
30 obj.Rotation = varargin{9};
31 obj.Endtime = varargin{10};
32 obj.Lambda = varargin{11};
33 obj.Prune = varargin{12};
34 obj.AnalysisHash = varargin{13};
35 end
36 end
37
38 function obj = GenerateHash(obj)
39 ArrayToHash = [obj.Iterations; obj.Seed; obj.Convergence; obj.CostMetric; ...
40 obj.RepRestrict; obj.PolyRestrict; obj.ContRestrict; ...
41 obj.DiagPattern; obj.Rotation; obj.Endtime; obj.Lambda; obj.Prune ];
42
43 ArrayToHash = [ ArrayToHash; (1*obj.AnalysisHash)'];
44 Opt = struct( 'Method', 'SHA-1' );
45 obj.Hash = ['id', char(DataHash(ArrayToHash, Opt))];
46 end
47 end
48 end