Class: Musa::Transcriptors::FromGDV::ToMIDI::Appogiatura

Inherits:
Musa::Transcription::FeatureTranscriptor show all
Defined in:
lib/musa-dsl/transcription/from-gdv-to-midi.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



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/musa-dsl/transcription/from-gdv-to-midi.rb', line 17

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

  if gdv_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[:duration] = gdv[:duration] - gdv_appogiatura[:duration]

    super [ gdv_appogiatura, gdv ], base_duration: base_duration, tick_duration: tick_duration
  else
    super
  end
end