As a scheme newby, I'm having trouble trying to put straightforward functions into lispian knots...
I'm calling a 'scale' a vector (should be a list?) of 7 degrees, ie: #(0, 2, 3, 5, 7, 8, 11)
where scale 0 is 0,
scale 1 is >= 1 and < 4,
scale 2 is > scale 1 and < 5,
scale 3 is 5,
scale 4 is >5 and <10,
scale 5 is > scale 4 and < 11,
scale 6 is > scale 5 and <= 11.
There are six vectors (should be lists?) of two elements
#(1 2) #(1 3) #(1 4) ... #(3 4)
and ten of three elements from #(6 7 8) to #(9 10 11)
It's straightforward for me to randomly choose one of the six for degrees 1 and 2, one of the ten for degrees 4, 5, and 5 --
but I get into tangles of ()'s trying to make a function to do this.
How? (Would it be better to go "(begin (set scale 0) (set scale 1) etc)" instead?
Forrest Curo
San Diego