A rational reconstruction of Schenkerian theory