Class: Musicality::Tasks::FileRaker::MIDI
- Inherits:
-
Musicality::Tasks::FileRaker
- Object
- Rake::TaskLib
- Musicality::Tasks::FileRaker
- Musicality::Tasks::FileRaker::MIDI
- 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
-
#initialize(yaml_files, tempo_sample_rate) ⇒ MIDI
constructor
A new instance of MIDI.
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 |