summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-06-21 20:58:15 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-06-21 20:58:15 +0200
commit30b0412feaebc4ecbf6e50801ff043d283e02f1c (patch)
treec91369ca7a11fe24c90c4c2d0789f8f8e88e80f4
parent7e32fb2816f69b294a4b7be0ed28eb67164d2ffc (diff)
downloadtrivmix-30b0412feaebc4ecbf6e50801ff043d283e02f1c.tar
trivmix-30b0412feaebc4ecbf6e50801ff043d283e02f1c.tar.gz
trivmix-30b0412feaebc4ecbf6e50801ff043d283e02f1c.tar.bz2
trivmix-30b0412feaebc4ecbf6e50801ff043d283e02f1c.tar.xz
trivmix-30b0412feaebc4ecbf6e50801ff043d283e02f1c.zip
Added --inc and --dec
-rw-r--r--adjmix/Adjmix.hs17
-rw-r--r--trivmix.cabal2
-rw-r--r--trivmix.nix2
3 files changed, 19 insertions, 2 deletions
diff --git a/adjmix/Adjmix.hs b/adjmix/Adjmix.hs
index 94416ac..0545395 100644
--- a/adjmix/Adjmix.hs
+++ b/adjmix/Adjmix.hs
@@ -52,6 +52,23 @@ optionParser = Options
52 <> help "Subtract from the current level" 52 <> help "Subtract from the current level"
53 ) 53 )
54 ) 54 )
55 <|> ( ($) <$> ( flag' Add ( long "inc"
56 <> short 'i'
57 <> help "Increase level by a preset amount (see ‘--by’)"
58 )
59 <|> flag' Sub ( long "dec"
60 <> short 'd'
61 <> help "Decrease level by a preset amount (see ‘--by’)"
62 )
63 )
64 <*> ( option auto ( long "by"
65 <> metavar "LEVEL"
66 <> value (read "5dB")
67 <> showDefault
68 <> help "Value to decrease/increase level by when using ‘--inc’ or ‘--dec’"
69 )
70 )
71 )
55 ) 72 )
56 73
57main :: IO () 74main :: IO ()
diff --git a/trivmix.cabal b/trivmix.cabal
index 9b2d723..3dd339a 100644
--- a/trivmix.cabal
+++ b/trivmix.cabal
@@ -2,7 +2,7 @@
2-- documentation, see http://haskell.org/cabal/users-guide/ 2-- documentation, see http://haskell.org/cabal/users-guide/
3 3
4name: trivmix 4name: trivmix
5version: 2.5.5 5version: 2.6.0
6-- synopsis: 6-- synopsis:
7-- description: 7-- description:
8license: PublicDomain 8license: PublicDomain
diff --git a/trivmix.nix b/trivmix.nix
index 1e329ab..82d4781 100644
--- a/trivmix.nix
+++ b/trivmix.nix
@@ -6,7 +6,7 @@
6 6
7cabal.mkDerivation (self: { 7cabal.mkDerivation (self: {
8 pname = "trivmix"; 8 pname = "trivmix";
9 version = "2.5.5"; 9 version = "2.6.0";
10 src = ./.; 10 src = ./.;
11 isLibrary = true; 11 isLibrary = true;
12 isExecutable = true; 12 isExecutable = true;