class Alda::AtMarker
An at-marker event. An Alda::EventContainer
containing an Alda::AtMarker
can be created using event list sugar. See Alda::EventList#method_missing
.
It should be used together with Alda::Marer. For examples, see Alda::Marker
.
Attributes
name[RW]
The corresponding marker's name
Public Class Methods
new(name) → Alda::AtMarker
click to toggle source
Creates an Alda::AtMarker
.
Underlines “_” in name
is converted to hyphens “-”.
# File lib/alda-rb/event.rb, line 791 def initialize name @name = name.to_s.tr ?_, ?- end
Public Instance Methods
to_alda_code()
click to toggle source
# File lib/alda-rb/event.rb, line 795 def to_alda_code ?@ + @name end