-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
30 lines (23 loc) · 1.16 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift File.expand_path("#{File.dirname(__FILE__)}/lib")
require "bundler"
Bundler::GemHelper.install_tasks
require 'rspec'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/*_spec.rb'
end
desc "Regenerate the parameters for the prior distribution of meters and their autocorrelation signatures"
task :regenerate_meter_estimator do
sh "./tools/generate_meter_detection_stats.rb > lib/music_ir/meter_detection_stats.rb"
end
desc "Regenerate the parameters for the hidden markov model in the key estimator"
task :regenerate_key_estimator do
sh "./tools/create_hmm_matrices_for_key_estimation.rb tools/chord_stats/pop_genre__chord_stats.txt > lib/music_ir/key_estimator_chord_stats.rb"
end
desc "Regenerate the parameters for the linear classifier for phrase boundary detection"
task :regenerate_phrase_boundary_classifier do
sh "./tools/generate_phrase_boundary_classifier_matrix.rb > tools/phrases/boundary_classifier_matrix.txt"
sh "./tools/characterize_phrase_boundary_classifier.rb tools/phrases/boundary_classifier_matrix.txt"
end
task :default => :spec