Class: DSP::Formants::Peak

Inherits:
Data
  • Object
show all
Defined in:
lib/dsprb/formants.rb,
sig/dsprb.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#amplitudeObject (readonly)

Returns the value of attribute amplitude

Returns:

  • (Object)

    the current value of amplitude



5
6
7
# File 'lib/dsprb/formants.rb', line 5

def amplitude
  @amplitude
end

#frequencyObject (readonly)

Returns the value of attribute frequency

Returns:

  • (Object)

    the current value of frequency



5
6
7
# File 'lib/dsprb/formants.rb', line 5

def frequency
  @frequency
end

Class Method Details

.newPeak

Parameters:

  • frequency: (::Float)
  • amplitude: (::Float)

Returns:



247
# File 'sig/dsprb.rbs', line 247

def self.new: (frequency: ::Float, amplitude: ::Float) -> Peak