Class: Coltrane::Representation::Piano::NoteSet

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/coltrane/representation/piano/note_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(note_set, piano:) ⇒ NoteSet

Returns a new instance of NoteSet.



13
14
15
16
# File 'lib/coltrane/representation/piano/note_set.rb', line 13

def initialize(note_set, piano:)
  @notes = note_set
  @piano = piano
end

Instance Attribute Details

#notesObject (readonly)

Returns the value of attribute notes.



10
11
12
# File 'lib/coltrane/representation/piano/note_set.rb', line 10

def notes
  @notes
end

#pianoObject (readonly)

Returns the value of attribute piano.



10
11
12
# File 'lib/coltrane/representation/piano/note_set.rb', line 10

def piano
  @piano
end