class RBMusic::NoteSet
Attributes
notes[RW]
Public Class Methods
new(notes = [])
click to toggle source
# File lib/rb-music/note_set.rb, line 12 def initialize(notes = []) @notes = notes end
Public Instance Methods
add(that)
click to toggle source
# File lib/rb-music/note_set.rb, line 16 def add(that) NoteSet.new(@notes.map { |note| note.add(that) }) end
subtract(that)
click to toggle source
# File lib/rb-music/note_set.rb, line 20 def subtract(that) NoteSet.new(@notes.map { |note| note.subtract(that) }) end