lib/caldera/player.rb
def equalizer(**bands)
      send_packet(:equalizer, {
                    bands: bands.collect do |band, gain|
                      { band: band.to_i, gain: gain.to_f }
                    end
                  })
    end
# Adjust the gain of bands.
# @example
#   player.equalizer(1 => 0.25, 5 => -0.25, 10 => 0.0)
Adjust the gain of bands.
Adjust the gain of bands .
def equalizer(**bands)
      send_packet(:equalizer, {
                    bands: bands.collect do |band, gain|
                      { band: band.to_i, gain: gain.to_f }
                    end
                  })
    end
def equalizer ( ** bands ) send_packet ( :equalizer , { bands : bands . collect do | band , gain | { band : band . to_i , gain : gain . to_f } end } ) end
Adjust the gain of bands.
Adjust the gain of bands .
bands
example
None