about summary refs log tree commit diff
path: root/website/sandbox/learnpianochords/src/ChordInspector.elm
blob: f43b534eb013d5ded7c63f2921990d651b9afd07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ChordInspector exposing (render)

import Html exposing (..)
import NoteInspector
import Theory


render : Theory.Chord -> Html a
render chord =
    case Theory.notesForChord chord of
        Nothing ->
            p [] [ text "Cannot retrieve the notes for the chord." ]

        Just notes ->
            NoteInspector.render notes