Class: Musicality::Tasks::FileRaker::MIDI

Inherits:
Musicality::Tasks::FileRaker show all
Defined in:
lib/musicality/project/file_raker.rb

Instance Attribute Summary

Attributes inherited from Musicality::Tasks::FileRaker

#file_ext, #files, #subdirs, #task_name

Instance Method Summary collapse

Constructor Details

#initialize(yaml_files, tempo_sample_rate) ⇒ MIDI

Returns a new instance of MIDI.



52
53
54
55
56
# File 'lib/musicality/project/file_raker.rb', line 52

def initialize yaml_files, tempo_sample_rate
  super(yaml_files, :midi, ".mid") do |t|
    sh "midify \"#{t.sources[0]}\" --srate=#{tempo_sample_rate}"
  end
end