setups my desktop environment from a debian netinst
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
256 B

#!/usr/bin/fish
if test -z "$argv[1]"; or test -z "$argv[2]"
echo "USAGE : bars_to_secs.sh [bars] [bpm]"
exit
end
set bars $argv[1]
set bpm $argv[2]
set sec (math "(60*$bars) / ($bpm/4)" )
echo "$bars bars at $bpm bpm last $sec seconds";
exit