moving chord detector out to examples