latest round of 2D DCT experiments
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 20 Jun 2017 03:31:15 +0000 (03:31 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 20 Jun 2017 03:31:15 +0000 (03:31 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3226 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/octave/newamp1_batch.m

index 4a368c7184db7ff67f387d48f1b9ba62629a8f70..fea3913e180434b87472ead7c92530eb44a2e8fd 100644 (file)
@@ -40,7 +40,7 @@
 % In general, this function processes a bunch of amplitudes, we then
 % use c2sim to hear the results.  Bunch of different experiments below
 
-function surface = newamp1_batch(input_prefix, output_prefix)
+function surface = newamp1_batch(input_prefix, output_prefix, mode)
   newamp;
   more off;
 
@@ -65,28 +65,12 @@ function surface = newamp1_batch(input_prefix, output_prefix)
 
   % Choose experiment to run test here -----------------------
 
-  %model_ = experiment_filter(model);
-  %model_ = experiment_filter_dec_filter(model);
-
-  %[model_ surface] = experiment_rate_K_dct2(model, 0, 1, voicing);
-  [model_ surface] = experiment_mel_freq(model, 0, 1, voicing);
-
-  %model_  = experiment_smoothed(model, 0);
-
-  %model_ = experiment_dec_abys(model, 8, 1, 1, 1, voicing);
-
-#{
-  [model_ voicing_ indexes] = experiment_rate_K_dec(model, voicing); % encoder/decoder, lets toss away results except for indexes
-  [model_ voicing_] = model_from_indexes_fbf(indexes);                   % decoder uses just indexes, outputs vecs for synthesis
-#}
-
-  %[model_ voicing_] = model_from_indexes(indexes);                   % decoder uses just indexes, outputs vecs for synthesis
-
-  %model_ = experiment_dec_linear(model_);
-  %model_ = experiment_energy_rate_linear(model, 1, 0);
-
-  %[model_ surface] = experiment_mel_diff_freq(model, 0);
-  %[model_ rate_K_surface] = experiment_closed_loop_mean(model);
+  if strcmp(mode, 'dct2')
+    [model_ surface] = experiment_rate_K_dct2(model, 0, 1, voicing);
+  end
+  if strcmp(mode, 'mel')
+    [model_ surface] = experiment_mel_freq(model, 0, 1, voicing);
+  end
 
   % ----------------------------------------------------