Class: Ramekin::NoteWrapper

Inherits:
NoteEvent show all
Defined in:
lib/ramekin/legato.rb

Direct Known Subclasses

LegatoLastNote

Constant Summary

Constants inherited from NoteEvent

Ramekin::NoteEvent::NOTES

Instance Attribute Summary

Attributes inherited from NoteEvent

#extensions, #note, #octave

Attributes inherited from Element

#channel, #components, #macro_stack, #start_tick

Instance Method Summary collapse

Methods inherited from NoteEvent

#default_error_location, #default_length, #inspect, #length_amk, #note_hex, #octave_num, #octave_switching_amk, #repr, #ticks, #to_amk

Methods inherited from Element

make

Constructor Details

#initialize(note) ⇒ NoteWrapper

Returns a new instance of NoteWrapper.



13
14
15
# File 'lib/ramekin/legato.rb', line 13

def initialize(note)
  @note = note
end

Instance Method Details

#finObject



21
22
23
# File 'lib/ramekin/legato.rb', line 21

def fin
  @note.fin
end

#metaObject



37
38
39
# File 'lib/ramekin/legato.rb', line 37

def meta
  @note.meta
end

#note_nameObject



41
42
43
# File 'lib/ramekin/legato.rb', line 41

def note_name
  @note.note_name
end

#octave_amk(*a) ⇒ Object



33
34
35
# File 'lib/ramekin/legato.rb', line 33

def octave_amk(*a)
  @note.octave_amk(*a)
end

#rest?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/ramekin/legato.rb', line 29

def rest?
  @note.rest?
end

#startObject



17
18
19
# File 'lib/ramekin/legato.rb', line 17

def start
  @note.start
end

#tie?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ramekin/legato.rb', line 25

def tie?
  @note.tie?
end