A Boolean theory of tonal signatures