Skip to content

Commit

Permalink
Add usage documentation for pitch argument
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmacphersonmusic committed May 25, 2015
1 parent 26030ec commit d88d053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/music_theory/note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Note

def initialize(options = {})
@frequency = options[:frequency] || 440.0 # Note frequency in Hz
@pitch = options[:pitch]
@pitch = options[:pitch] # ex: Pitch.new(:D, 7)
@frequency = pitch_object_frequency
@duration = options[:duration] || 1.0 # Number of seconds per note
@distort = options[:distort] || false
Expand Down

0 comments on commit d88d053

Please sign in to comment.