class MusicDetector::Configuration
Attributes
a[R]
in_tune_cents[R]
out_of_tune_cents[R]
temperament_range[R]
Public Class Methods
new(a: 440, temperament_range: -12..24, in_tune_cents: 10, out_of_tune_cents: 30)
click to toggle source
@param [Numeric] a base A4 frequency of the equal temperament (typically 440) @param [Range] temperament_range
range of the equal temperament used to extract feature vector @param [Float] in_tune_cents
maximum frequency difference between an in-tune note and the equal temperament @param [Float] out_of_tune_ratio minimum frequency difference between an out-of-tune note and the equal temperament
# File lib/music_detector/configuration.rb, line 9 def initialize(a: 440, temperament_range: -12..24, in_tune_cents: 10, out_of_tune_cents: 30) @a = a @temperament_range = temperament_range @in_tune_cents = in_tune_cents @out_of_tune_cents = out_of_tune_cents end