Class: FMOD::Core::FloatDescription
- Defined in:
- lib/fmod/core/float_description.rb
Overview
Structure describing a float parameter for a DSP unit.
Constant Summary collapse
- LINEAR =
Values mapped linearly across range.
0
- AUTO =
A mapping is automatically chosen based on range and units.
1
- PIECEWISE_LINEAR =
Values mapped in a piecewise linear fashion.
2
Instance Attribute Summary collapse
-
#default ⇒ Float
The default parameter value.
-
#mapping ⇒ Integer
Value indicating how the values are distributed across dials and automation curves (e.g. linearly, exponentially etc).
-
#max ⇒ Float
The maximum parameter value.
-
#min ⇒ Float
The minimum parameter value.
Instance Method Summary collapse
-
#initialize(address = nil) ⇒ FloatDescription
constructor
A new instance of FloatDescription.
Methods inherited from Structure
Constructor Details
#initialize(address = nil) ⇒ FloatDescription
Returns a new instance of FloatDescription.
24 25 26 27 28 |
# File 'lib/fmod/core/float_description.rb', line 24 def initialize(address = nil) types = [TYPE_FLOAT, TYPE_FLOAT, TYPE_FLOAT, TYPE_INT] members = [:min, :max, :default, :mapping] super(address, types, members) end |
Instance Attribute Details
#default ⇒ Float
Returns the default parameter value.
|
# File 'lib/fmod/core/float_description.rb', line 36
|
#mapping ⇒ Integer
Value indicating how the values are distributed across dials and automation curves (e.g. linearly, exponentially etc).
Will be one of the following values:
49 50 51 |
# File 'lib/fmod/core/float_description.rb', line 49 [:min, :max, :default, :mapping].each do |symbol| define_method(symbol) { self[symbol] } end |
#max ⇒ Float
Returns the maximum parameter value.
|
# File 'lib/fmod/core/float_description.rb', line 33
|
#min ⇒ Float
Returns the minimum parameter value.
|
# File 'lib/fmod/core/float_description.rb', line 30
|