Class: Musa::Transcriptors::FromGDV::ToMusicXML::Appogiatura

Inherits:
Musa::Transcription::FeatureTranscriptor show all
Defined in:
lib/musa-dsl/transcription/from-gdv-to-musicxml.rb

Overview

Process: appogiatura (neuma)neuma

Instance Method Summary collapse

Methods inherited from Musa::Transcription::FeatureTranscriptor

#check

Instance Method Details

#transcript(gdv, base_duration:, tick_duration:) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/musa-dsl/transcription/from-gdv-to-musicxml.rb', line 13

def transcript(gdv, base_duration:, tick_duration:)
  if gdv_appogiatura = gdv[:appogiatura]
    gdv.delete :appogiatura

    # TODO process with Decorators the gdv_appogiatura
    # TODO implement also posterior appogiatura neuma(neuma)
    # TODO implement also multiple appogiatura with several notes (neuma ... neuma)neuma or neuma(neuma ... neuma)

    gdv_appogiatura[:grace] = true
    gdv[:graced] = true
    gdv[:graced_by] = gdv_appogiatura

    [ gdv_appogiatura, gdv ]
  else
    gdv
  end
end