2 wavedrum-lib, a library to parse, edit and write Korg Wavedrum programs.
3 Copyright (C) 2013 Ricardo Wurmus
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 module Wavedrum.Types where
21 import qualified Data.Text as T
23 type Range = (Int, Int)
29 | General deriving (Show, Eq)
31 -- TODO: value is not just Int, but can be an algorithm, PCM instrument, a velocity curve etc.
33 -- data Value = Value Int
44 instance Show Param where
45 show p = "Param " ++ show (name p) ++
46 " = " ++ show (value p) ++
47 " [min " ++ show (fst (range p)) ++
48 ", max " ++ show (snd (range p)) ++ "]"
50 type Program = [Param]
53 This is the order of parameters in a program:
56 01.1 02.1 03.1 04.1 05.1
61 01.3 02.3 03.3 04.3 05.3
67 05.2 06.2 07.2 08.2 09.2
70 05.4 06.4 07.4 08.4 09.4