From 89a9d4947c176c237aba60578fa26e3f061c82fb Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 22 Jul 2023 13:26:19 +0100 Subject: [PATCH] use numbered parameter in _get_levels --- lib/voicemeeter/base.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/voicemeeter/base.rb b/lib/voicemeeter/base.rb index 7ea1955..2d7c662 100644 --- a/lib/voicemeeter/base.rb +++ b/lib/voicemeeter/base.rb @@ -147,11 +147,10 @@ module Voicemeeter end private def _get_levels + strip_mode = cache[:strip_mode] [ - (0...kind.num_strip_levels).map do |i| - get_level(cache[:strip_mode], i) - end, - (0...kind.num_bus_levels).map { |i| get_level(3, i) } + (0...kind.num_strip_levels).map { get_level(strip_mode, _1) }, + (0...kind.num_bus_levels).map { get_level(3, _1) } ] end