module Korg where
import Sound.Tidal.Params
import Sound.Tidal.Pattern
volcaBeats :: Pattern String -> ControlPattern
volcaBeats = n . (subtract 60 . volcaBeatsMidiNote <$>)
volcaBeatsMidiNote :: Num a => String -> a
volcaBeatsMidiNote "bd" = 36
volcaBeatsMidiNote "sd" = 38
volcaBeatsMidiNote "lt" = 43
volcaBeatsMidiNote "ht" = 50
volcaBeatsMidiNote "ch" = 42
volcaBeatsMidiNote "oh" = 46
volcaBeatsMidiNote "cp" = 39
volcaBeatsMidiNote "cl" = 75
volcaBeatsMidiNote "ag" = 67
volcaBeatsMidiNote "cr" = 49
volcaBeatsMidiNote _ = 0
mr16 :: Pattern String -> ControlPattern
mr16 = n . (subtract 60 . mr16MidiNote <$>)
mr16MidiNote :: Num a => String -> a
mr16MidiNote "bd" = 35
mr16MidiNote "rs" = 37
mr16MidiNote "sd" = 38
mr16MidiNote "cp" = 39
mr16MidiNote "lt" = 41
mr16MidiNote "ch" = 42
mr16MidiNote "oh" = 46
mr16MidiNote "ht" = 47
mr16MidiNote "cr" = 49
mr16MidiNote "rd" = 51
mr16MidiNote "lc" = 52
mr16MidiNote "hc" = 53
mr16MidiNote "ta" = 54
mr16MidiNote "cb" = 56
mr16MidiNote "ti" = 57
mr16MidiNote "ca" = 58
mr16MidiNote "wb" = 60
mr16MidiNote "la" = 61
mr16MidiNote "ha" = 63
mr16MidiNote "mp" = 64
mr16MidiNote "mf" = 65