class Alda::Marker

A marker event. An Alda::EventContainer containing an Alda::Marker can be created using event list sugar. See Alda::EventList#method_missing.

It should be used together with Alda::AtMarker.

Alda::Score.new do
  piano_ v1 c d _here e2 v2 __here c4 d e2
end

Attributes

name[RW]

The marker's name

Public Class Methods

new(name) → Alda::Marker click to toggle source

Creates an Alda::Marker.

Underlines in name is converted to hyphens.

# File lib/alda-rb/event.rb, line 762
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 766
def to_alda_code
  ?% + @name
end