diff --git a/lib/music/csound.rb b/lib/music/csound.rb index 17557f0..5928b4d 100644 --- a/lib/music/csound.rb +++ b/lib/music/csound.rb @@ -1,8 +1,5 @@ module Music module Csound - - def gen(*args) args end - class ScoreWriter attr_reader :instruments, :path diff --git a/spec/csound_spec.rb b/spec/csound_spec.rb index e03157f..16953ba 100644 --- a/spec/csound_spec.rb +++ b/spec/csound_spec.rb @@ -9,8 +9,12 @@ sn([c4, g4, c5]) | sn([c3, g2, c2]), :instrument => 101) @writer = ScoreWriter.new( - :f => [ gen(1, 0, 0, 1, "example.wav", 0, 0, 0) ], - :i => { 101 => [:pitch] }) + :f => [ + [1, 0, 0, 1, "example.wav", 0, 0, 0] + ], + :i => { + 101 => [:pitch] + }) end it "should write a valid Csound score" do