Method: MusicalScore::Note::Pitch#initialize
- Defined in:
- lib/musical_score/note/pitch.rb
#initialize(step, alter = 0, octave = 0) ⇒ Pitch
Returns a new instance of Pitch.
29 30 31 32 33 |
# File 'lib/musical_score/note/pitch.rb', line 29 def initialize(step, alter = 0, octave = 0) @step = step.to_sym @alter = alter @octave = octave end |