Class: FiddleFluidSynth::ModuleBase::Settings

Inherits:
FiddleFluidSynth::ModuleBase show all
Defined in:
lib/fiddle_fluidsynth/util/module_hier.rb,
lib/fiddle_fluidsynth/util/module_hier.rb

Instance Attribute Summary

Attributes inherited from FiddleFluidSynth::ModuleBase

#fluidsynth_instance, #parent, #settings

Instance Method Summary collapse

Methods inherited from FiddleFluidSynth::ModuleBase

#soundfont

Constructor Details

#initialize(parent:, fluidsynth_instance:, value:, sub_new_f: true) ⇒ Settings

Returns a new instance of Settings.



110
111
112
113
114
115
116
117
118
119
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 110

def initialize( parent: , fluidsynth_instance: , value: , sub_new_f: true )
  # super
  super(parent: parent, fluidsynth_instance: fluidsynth_instance,
        value: fluidsynth_instance.settings, sub_new_f: false)

  if sub_new_f
    self.init_sub
  end

end

Instance Method Details

#init_subObject



121
122
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 121

def init_sub
end

#valueObject



120
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 120

def value; self.fluidsynth_instance.settings; end