Safe Haskell | Safe-Inferred |
---|
Synopsis
- data Highlight
- = NoHighlight
- | Notice
- | Warning
- | Error
- data Color = Color !Double !Double !Double !Double
- rgb :: Double -> Double -> Double -> Color
- rgba :: Double -> Double -> Double -> Double -> Color
- rgba_word :: Word32 -> Color
- black :: Color
- white :: Color
- red :: Color
- green :: Color
- blue :: Color
- yellow :: Color
- purple :: Color
- turquoise :: Color
- gray1 :: Color
- gray2 :: Color
- gray3 :: Color
- gray4 :: Color
- gray5 :: Color
- gray6 :: Color
- gray7 :: Color
- gray8 :: Color
- gray9 :: Color
- brightness :: Double -> Color -> Color
- alpha :: Double -> Color -> Color
Documentation
How to highlight an event in the UI. This can be used to highlight instrumental restrictions, or for analysis.
TODO This doesn't really belong in this module, but I couldn't think of a better place to put it that wouldn't incur unnecessary dependencies.
NoHighlight | |
Notice | This note is special in some way, perhaps an open string. |
Warning | This note might have a problem, e.g. in a difficult range or requires difficult fingering or the pitch needs to be adjusted. |
Error | This note is probably unplayable, e.g. out of range. |
Instances
Monoid Highlight Source # | |
Semigroup Highlight Source # | This is so more serious highlights can override less serious ones. |
Bounded Highlight Source # | |
Enum Highlight Source # | |
Defined in Ui.Color succ :: Highlight -> Highlight # pred :: Highlight -> Highlight # fromEnum :: Highlight -> Int # enumFrom :: Highlight -> [Highlight] # enumFromThen :: Highlight -> Highlight -> [Highlight] # enumFromTo :: Highlight -> Highlight -> [Highlight] # enumFromThenTo :: Highlight -> Highlight -> Highlight -> [Highlight] # | |
Show Highlight Source # | |
Eq Highlight Source # | |
Ord Highlight Source # | |
Defined in Ui.Color | |
ShowVal Highlight Source # | |
Typecheck Highlight Source # | |
Pretty Highlight Source # | |
Instances
Read Color Source # | |
Show Color Source # | |
CStorable Color Source # | |
Eq Color Source # | |
Ord Color Source # | |
Pretty Color Source # | |
Serialize Color Source # | |