In all the examples, the score has the instruments readily defined by the programmer:
(def-score
(:score-prop score-val ...)
(instrument-1
:instrument-prop instrument-val
...)
(instrument-2
:instrument-prop instrument-val
...)
)
What I have been wondering is can I dynamically create these instruments, allowing for proper reference in :layout afterwards, etc.
For example, if I wanted 10 instruments:
(defun my-generate-instrument ...) ;; something
(def-score
(:score-prop score-val ...)
(loop
for i from 1 to 10
collect (my-generate-instrument i)))
Any tips for an scenario like this one?