Skip to content

Commit

Permalink
add custom volume control
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebashi committed Apr 8, 2011
1 parent 1209e9c commit 50edd93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skiffstereo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def vol(i)
vol(4)
elsif txt.include?('!loud')
vol(7)
elsif v = txt.match(/!vol ([0-9]{1,2})/)
v = [10.0, v[1].to_i].min
vol((v / 10.0) * 7.0)
elsif txt.include?('!skip') || txt.include?('!next')
skip
else
Expand Down

0 comments on commit 50edd93

Please sign in to comment.