class String

Public Instance Methods

to_d()
Alias for: to_duration
to_ds(pattern=" ")
Alias for: to_durations
to_dur()
Alias for: to_duration
to_duration() click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 41
def to_duration
  Musicality::Duration.parse(self)
end
Also aliased as: to_dur, to_d
to_durations(pattern=" ") click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 47
def to_durations pattern=" "
  Musicality::Duration.split_parse(self, pattern)
end
Also aliased as: to_durs, to_ds
to_durs(pattern=" ")
Alias for: to_durations
to_k()
Alias for: to_key
to_key() click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 63
def to_key
  Musicality::Key.parse(self)
end
Also aliased as: to_k
to_meter() click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 78
def to_meter
  Musicality::Meter.parse(self)
end
to_n()
Alias for: to_note
to_note() click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 68
def to_note
  Musicality::Note.parse(self)
end
Also aliased as: to_n
to_notes(pattern=" ") click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 73
def to_notes pattern=" "
  Musicality::Note.split_parse(self, pattern)
end
Also aliased as: to_ns
to_ns(pattern=" ")
Alias for: to_notes
to_p()
Alias for: to_pitch
to_pitch() click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 53
def to_pitch
  Musicality::Pitch.parse(self)
end
Also aliased as: to_p
to_pitches(pattern=" ") click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 58
def to_pitches pattern=" "
  Musicality::Pitch.split_parse(self, pattern)
end
Also aliased as: to_ps
to_ps(pattern=" ")
Alias for: to_pitches
to_segment() click to toggle source
# File lib/musicality/notation/parsing/convenience_methods.rb, line 82
def to_segment
  Musicality::Segment.parse(self)
end