Class: FiddleFluidSynth::ModuleBase
- Inherits:
-
Object
- Object
- FiddleFluidSynth::ModuleBase
- Defined in:
- lib/fiddle_fluidsynth/util/module_hier.rb,
lib/fiddle_fluidsynth/util/module_hier.rb,
lib/fiddle_fluidsynth/util/module_hier.rb,
lib/fiddle_fluidsynth/util/module_hier.rb,
lib/fiddle_fluidsynth/util/module_hier.rb
Overview
SoundFont
Direct Known Subclasses
AudioOutput, CommandInterface, Logging, Settings, SoundFont, Synthesizer
Defined Under Namespace
Classes: AudioOutput, CommandInterface, Logging, Settings, SoundFont, Synthesizer
Instance Attribute Summary collapse
-
#fluidsynth_instance ⇒ Object
readonly
Returns the value of attribute fluidsynth_instance.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
-
#value ⇒ Object
(also: #itself, #obj)
Returns the value of attribute value.
Instance Method Summary collapse
- #init_sub ⇒ Object
-
#initialize(parent:, fluidsynth_instance:, value:, sub_new_f: true) ⇒ ModuleBase
constructor
A new instance of ModuleBase.
- #soundfont(at_sfid = 1) ⇒ Object
Constructor Details
#initialize(parent:, fluidsynth_instance:, value:, sub_new_f: true) ⇒ ModuleBase
Returns a new instance of ModuleBase.
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 60 def initialize( parent: , fluidsynth_instance: , value: , sub_new_f: true ) @parent = parent @value = value @fluidsynth_instance = fluidsynth_instance # if sub_new_f self.init_sub end end |
Instance Attribute Details
#fluidsynth_instance ⇒ Object (readonly)
Returns the value of attribute fluidsynth_instance.
78 79 80 |
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 78 def fluidsynth_instance @fluidsynth_instance end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
71 72 73 |
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 71 def parent @parent end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
92 93 94 |
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 92 def settings @settings end |
#value ⇒ Object Also known as: itself, obj
Returns the value of attribute value.
72 73 74 |
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 72 def value @value end |
Instance Method Details
#init_sub ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 80 def init_sub @settings = Settings.new( parent: self, fluidsynth_instance: fluidsynth_instance, value: nil) #@audio_output = AudioOutput.new(parent: self, fluidsynth_instance: fluidsynth_instance, value: nil) #@commandInterface = CommandInterface.new(parent: self, fluidsynth_instance: fluidsynth_instance, value: nil) #@logging = Logging.new(parent: self, fluidsynth_instance: fluidsynth_instance, value: nil) @soundfont = SoundFont.new( parent: self, fluidsynth_instance: fluidsynth_instance, value: fluidsynth_instance.sfonts.first) end |
#soundfont(at_sfid = 1) ⇒ Object
95 96 97 98 |
# File 'lib/fiddle_fluidsynth/util/module_hier.rb', line 95 def soundfont( at_sfid = 1 ) @soundfont.sfid = at_sfid @soundfont end |