2012HackSessionNotes » History » Version 9

Luis Figueira, 2012-06-28 12:12 PM
added aux materials

1 6 Luis Figueira
h1. 2012 Hack Session Notes
2 1 Luis Figueira
3 9 Luis Figueira
h2. Auxiliary Materials
4 9 Luis Figueira
5 9 Luis Figueira
h3. Hack Session Scripts
6 9 Luis Figueira
7 9 Luis Figueira
Please download the hack session script here: https://code.soundsoftware.ac.uk/projects/smallbox/files
8 9 Luis Figueira
9 9 Luis Figueira
h3. SMALLbox Cheat Sheet
10 9 Luis Figueira
11 9 Luis Figueira
Please download the SMALLBox Cheat Sheet here: 
12 1 Luis Figueira
13 8 Luis Figueira
h2. Running SMALLbox Add-ons 
14 1 Luis Figueira
15 8 Luis Figueira
_note: this is an example add-on developed by Daniele Barchiese._ 
16 8 Luis Figueira
17 6 Luis Figueira
These are the steps needed to interface SMALLbox add-ons to the core SMALLbox distribulation:
18 1 Luis Figueira
19 1 Luis Figueira
# Download the add-on distribution from: http://code.soundsoftware.ac.uk/projects/incoherentdl/files
20 1 Luis Figueira
** The version you wish to download is *version 1.1*
21 1 Luis Figueira
** unzip the downloaded file - this will create a folder named incoherentdl-v1_1
22 8 Luis Figueira
# Place the add-on code in any convenient location of your file system
23 8 Luis Figueira
** if you copy it to somewhere outside the SMALLBox folder, you'll need to add it to your path
24 8 Luis Figueira
*** @addpath(genpath('{incoherentdl-v1_1}'))@
25 8 Luis Figueira
** if you place it under the @{SMALLBox Root}/Toolboxes@ folder, it will be added when you run the init script
26 6 Luis Figueira
# Modify the relevant files in the folder @{SMALLBox Root}/config/@
27 6 Luis Figueira
** modify or create @{SMALLBox Root}/config/SMALL_learn_config_local.m@
28 7 Luis Figueira
*** @cp {SMALLBox Root}/config/SMALL_learn_local.m {SMALLBox Root}/config/SMALL_learn_config_local.m@
29 6 Luis Figueira
**** this local file is not tracked by Mercurial 
30 6 Luis Figueira
**** if you need to revert to the _default_ SMALLbox setting, you just need to delete/rename your local file
31 5 Luis Figueira
*** add the following code to the local config file: 
32 2 Luis Figueira
<pre>
33 2 Luis Figueira
elseif strcmpi(DL.toolbox , 'SMALL_incoherentDL')
34 3 Luis Figueira
  DL=SMALL_incoherentDL ( Problem , DL ) ;
35 3 Luis Figueira
   % we need to make sure that columns are normalised to % unit lenght .
36 3 Luis Figueira
  for i = 1: size(DL.D,2)
37 3 Luis Figueira
    DL.D(: ,i)=DL.D(: ,i)/norm(DL.D(: ,i));
38 3 Luis Figueira
  end
39 2 Luis Figueira
  D = DL.D;
40 2 Luis Figueira
</pre>
41 6 Luis Figueira
# Run the @SMALLboxInit.m@ script to set environmental variables
42 6 Luis Figueira
# Run any function or script contained in the add-on.
43 4 Luis Figueira
** example: 
44 6 Luis Figueira
*** @load test_mocod.mat@ 
45 6 Luis Figueira
**** located in @incoherentdl-v1_1/results/test_mocod.mat@ (but already in path)
46 6 Luis Figueira
*** @open SMALL_test_mocod.m@
47 6 Luis Figueira
**** located in @incoherentdl-v1_1/open SMALL_test_mocod.m@
48 1 Luis Figueira
*** run the code from the block that starts on line 110 (with the comment Plot Results)
49 1 Luis Figueira
**** this will display two coherence/signal to noise ratio plots based on results previously computed