Skip to content

Commit

Permalink
Csound.gen() was pretty useless.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Voorhis committed Nov 11, 2008
1 parent 69528b4 commit 526d0c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions lib/music/csound.rb
@@ -1,8 +1,5 @@
module Music
module Csound

def gen(*args) args end

class ScoreWriter
attr_reader :instruments, :path

Expand Down
8 changes: 6 additions & 2 deletions spec/csound_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 526d0c0

Please sign in to comment.