Closed infradig closed 5 months ago
@jgarte
@infradig Thanks!
It works perfectly now:
jgart@fedora:~/Code/prolog/logical-music$ tpl row.pl
?- is_twelve_tone_row([1,2,3,4,5,6,7,8,9,10,11]).
false.
?- is_twelve_tone_row([0,1,2,3,4,5,6,7,8,9,10,11]).
true
;
;
;
; ... .
?- is_twelve_tone_row([0,1,2,3,4,5,6,7,8,9,10,Ns]).
Ns = 11
; ... .
https://git.sr.ht/~whereiseveryone/logical-music/tree/master/item/tonerow.pl
Discussed in https://github.com/trealla-prolog/trealla/discussions/548