Skip to content

Commit

Permalink
Update chord_degree docs & example to refer to rings
Browse files Browse the repository at this point in the history
  • Loading branch information
ethancrawford committed Jul 30, 2015
1 parent 6017d96 commit 3b27224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/sonicpi/lib/sonicpi/mods/sound.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2463,12 +2463,12 @@ def chord_degree(degree, tonic, scale=:major, number_of_notes=4, *opts)
doc name: :chord_degree,
introduced: Version.new(2,1,0),
summary: "Construct chords based on scale degrees",
doc: "A helper method that returns a list of midi note numbers when given a degree (a symbol `:i`, `:ii`, `:iii`, `:iv`, `:v`, `:vi`, `:vii` or a number `1`-`7`), tonic, scale and number of notes",
doc: "A helper method that returns a ring of midi note numbers when given a degree (a symbol `:i`, `:ii`, `:iii`, `:iv`, `:v`, `:vi`, `:vii` or a number `1`-`7`), tonic, scale and number of notes",
args: [[:degree, :symbol_or_number], [:tonic, :symbol], [:scale, :symbol], [:number_of_notes, :number]],
opts: nil,
accepts_block: false,
examples: ["
puts chord_degree(:i, :A3, :major) # returns a list of midi notes - [57, 61, 64, 68]
puts chord_degree(:i, :A3, :major) # returns a ring of midi notes - (ring 57, 61, 64, 68)
",
"play chord_degree(:i, :A3, :major)"
]
Expand Down

0 comments on commit 3b27224

Please sign in to comment.