Class: Musa::Transcriptors::FromGDV::Base

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

Overview

Process: .base .b

Instance Method Summary collapse

Methods inherited from Musa::Transcription::FeatureTranscriptor

#check

Instance Method Details

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



7
8
9
10
11
12
# File 'lib/musa-dsl/transcription/from-gdv.rb', line 7

def transcript(gdv, base_duration:, tick_duration:)
  base = gdv.delete :base
  base ||= gdv.delete :b

  super base ? { duration: 0 }.extend(Musa::Datasets::AbsD) : gdv, base_duration: base_duration, tick_duration: tick_duration
end