From d8c3ec7bc0c4902e6d14e3b1135160bcc9d225d7 Mon Sep 17 00:00:00 2001 From: LouisRanjard Date: Mon, 15 May 2017 12:52:03 +1000 Subject: [PATCH] add information in readme and tutorial files --- README.md | 8 +++++++- Tutorial_diving_petrel/tutorial.md | 5 +++++ plot_Label.m | 6 +++--- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7cef2f3..ad37327 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # matlabHTK -## Matlab Interface to HTK for Bioacoustic +## Matlab/Octave Interface to HTK for Bioacoustic --- @@ -9,6 +9,12 @@ MatlabHTK uses VOICEBOX speech processing toolbox MATLAB routines to read/write --- +## How to cite + +Please use: Ranjard, L., Reed, B. S., Landers, T. J., Rayner, M. J., Friesen, M. R., Sagar, R. L. and Dunphy, B. J. (2016). MatlabHTK: A simple interface for bioacoustic analyses using hidden Markov models. Methods in Ecology and Evolution. doi:10.1111/2041-210X.12688 + +--- + ## Function documentation The calls to HTK functions are _**indicated**_. diff --git a/Tutorial_diving_petrel/tutorial.md b/Tutorial_diving_petrel/tutorial.md index 4e24e9e..387238d 100644 --- a/Tutorial_diving_petrel/tutorial.md +++ b/Tutorial_diving_petrel/tutorial.md @@ -10,8 +10,12 @@ Open Octave or Matlab. Add the matlabHTK function to the Matlab/Octave path and addpath(genpath('/home/louis/matlabHTK-master')) ; cd /home/louis/matlabHTK-master/Tutorial_diving_petrel ; more off; +graphics_toolkit("gnuplot"); ``` Use `more off;` in Octave to suppress some unnecessary messages (disable Paging Screen Output). +Depending on how you downloaded the package, you may need to use the path '/home/louis/matlabHTK' instead of '/home/louis/matlabHTK-master'. +For correctly displaying plots in Octave, make sure you are using the gnuplot system `graphics_toolkit("gnuplot");`. + #### Training Set up and train HMMs for each label found in the manually annotated label files in training directory @@ -31,6 +35,7 @@ Plot the recognition results for the label 'diving_petrel'. Input the date and t plot_Label('./recognition/recording.label','./recognition/recording.wav','diving_petrel',10,'25/09/2014 18:00:00',1); ``` + ---   diff --git a/plot_Label.m b/plot_Label.m index 3216894..020e672 100755 --- a/plot_Label.m +++ b/plot_Label.m @@ -10,7 +10,7 @@ end if nargin<5 - timestart = 0; + timestart = datestr(now,'dd/mm/yyyy HH:MM:SS') ; if nargin<4 % choose bin size in seconds binsiz = 60 ; @@ -18,9 +18,9 @@ label = 'diving_petrel' ; end end -else - timestart = datenum(timestart,'dd/mm/yyyy HH:MM:SS') ; end + +timestart = datenum(timestart,'dd/mm/yyyy HH:MM:SS') ; % get the Fs %tmp = regexprep(filename(end:-1:1),'dirGtxeT.','vaw.','once');