Class: Musicality::Tasks::FileRaker::SuperCollider

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) ⇒ SuperCollider

Returns a new instance of SuperCollider.



60
61
62
63
64
# File 'lib/musicality/project/file_raker.rb', line 60

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