Class: Vizcore::Audio::Calibration::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/vizcore/audio/calibration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clip_ratioObject

Returns the value of attribute clip_ratio

Returns:

  • (Object)

    the current value of clip_ratio



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def clip_ratio
  @clip_ratio
end

#frame_sizeObject

Returns the value of attribute frame_size

Returns:

  • (Object)

    the current value of frame_size



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def frame_size
  @frame_size
end

#framesObject

Returns the value of attribute frames

Returns:

  • (Object)

    the current value of frames



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def frames
  @frames
end

#peak_maxObject

Returns the value of attribute peak_max

Returns:

  • (Object)

    the current value of peak_max



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def peak_max
  @peak_max
end

Returns the value of attribute recommended_noise_gate

Returns:

  • (Object)

    the current value of recommended_noise_gate



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def recommended_noise_gate
  @recommended_noise_gate
end

#rms_meanObject

Returns the value of attribute rms_mean

Returns:

  • (Object)

    the current value of rms_mean



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def rms_mean
  @rms_mean
end

#rms_p95Object

Returns the value of attribute rms_p95

Returns:

  • (Object)

    the current value of rms_p95



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def rms_p95
  @rms_p95
end

#sample_rateObject

Returns the value of attribute sample_rate

Returns:

  • (Object)

    the current value of sample_rate



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def sample_rate
  @sample_rate
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



12
13
14
# File 'lib/vizcore/audio/calibration.rb', line 12

def source
  @source
end

Instance Method Details

#to_hObject



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/vizcore/audio/calibration.rb', line 24

def to_h
  {
    source: source,
    sample_rate: sample_rate,
    frame_size: frame_size,
    frames: frames,
    rms_mean: rms_mean,
    rms_p95: rms_p95,
    peak_max: peak_max,
    clip_ratio: clip_ratio,
    recommended_noise_gate: recommended_noise_gate
  }
end