Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/music-transcription/parsing/convenience_methods.rb
Instance Method Summary collapse
- #to_duration ⇒ Object (also: #to_dur, #to_d)
- #to_durations(pattern = " ") ⇒ Object (also: #to_durs, #to_ds)
- #to_meter ⇒ Object
- #to_note ⇒ Object (also: #to_n)
- #to_notes(pattern = " ") ⇒ Object (also: #to_ns)
- #to_pitch ⇒ Object (also: #to_p)
- #to_pitches(pattern = " ") ⇒ Object (also: #to_ps)
- #to_segment ⇒ Object
Instance Method Details
#to_duration ⇒ Object Also known as: to_dur, to_d
43 44 45 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 43 def to_duration Music::Transcription::Duration.parse(self) end |
#to_durations(pattern = " ") ⇒ Object Also known as: to_durs, to_ds
49 50 51 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 49 def to_durations pattern=" " Music::Transcription::Duration.split_parse(self, pattern) end |
#to_meter ⇒ Object
75 76 77 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 75 def to_meter Music::Transcription::Meter.parse(self) end |
#to_note ⇒ Object Also known as: to_n
65 66 67 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 65 def to_note Music::Transcription::Note.parse(self) end |
#to_notes(pattern = " ") ⇒ Object Also known as: to_ns
70 71 72 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 70 def to_notes pattern=" " Music::Transcription::Note.split_parse(self, pattern) end |
#to_pitch ⇒ Object Also known as: to_p
55 56 57 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 55 def to_pitch Music::Transcription::Pitch.parse(self) end |
#to_pitches(pattern = " ") ⇒ Object Also known as: to_ps
60 61 62 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 60 def to_pitches pattern=" " Music::Transcription::Pitch.split_parse(self, pattern) end |
#to_segment ⇒ Object
79 80 81 |
# File 'lib/music-transcription/parsing/convenience_methods.rb', line 79 def to_segment Music::Transcription::Segment.parse(self) end |