greetings
andré
;;; MODIFY THE PITCH CONTOUR inside a pitchfield or tonality
;;; please evaluate the example and have a look to the contours
;;; subfunction
(defun position-items (items alist)
(loop
for item in items
append (position-item item alist)))
;;; function
(defun compr/expand-melody (melody field &key (type 'add) (n 1) (shift 0))
(let* ((ints (loop for i in (difference
(position-items (pitch-to-midi melody)
perhaps you have some better ideas - ...perhaps with range/ambitus... sometimes in trouble - but i only use it for my current work, and so it's no problem 🙂
Â
could be nice if you could do the add-system also with an external list input -> not fibonacci or primes or sum, but perhaps also with any integer or float list. so MODIFY-function could be done with any DATA...
Â
and perhaps it could be also nice for LENGTH and DYNAMICS, i would like that (all-in-one)