Class: FiddleFluidSynth::ModuleBase::Synthesizer

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) ⇒ Synthesizer

Returns a new instance of Synthesizer.



133
134
135
136
137
138
139
140
141
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 133

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

  if sub_new_f
    self.init_sub
  end

end

Instance Method Details

#init_subObject



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

def init_sub
end

#valueObject



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

def value; self.fluidsynth_instance.synth; end