Class: FiddleFluidSynth::ModuleBase::SoundFont::Bank

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

Direct Known Subclasses

Presets

Defined Under Namespace

Classes: Presets

Instance Attribute Summary collapse

Attributes inherited from FiddleFluidSynth::ModuleBase::SoundFont

#map_preset, #sfid

Attributes inherited from FiddleFluidSynth::ModuleBase

#fluidsynth_instance, #parent, #settings

Instance Method Summary collapse

Methods inherited from FiddleFluidSynth::ModuleBase::SoundFont

#bank, #count, #full_path, #load, #name, #preset_iter, #preset_iter_reset, #scan_presets

Methods inherited from FiddleFluidSynth::ModuleBase

#soundfont

Constructor Details

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

Returns a new instance of Bank.



311
312
313
314
315
316
317
318
319
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 311

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 Attribute Details

#bknumObject

Returns the value of attribute bknum.



320
321
322
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 320

def bknum
  @bknum
end

Instance Method Details

#init_subObject

TODO:



324
325
326
327
328
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 324

def init_sub
  @presets = Bank::Presets.new(
    parent: self, fluidsynth_instance: fluidsynth_instance,
    value: nil, sub_new_f: true)
end

#presets(prenum = @presets.num) ⇒ Object



329
330
331
332
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 329

def presets( prenum = @presets.num )
  @presets.num = prenum
  @presets
end

#valueObject



321
322
323
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 321

def value
  # TODO: 
end