Jump to content

Error message when random value too high

Recommended Posts

Here is the score        

Very often when rnd repeat of Rhyt is too high i gat this error message when i want to export last score to midi ,maybe a mistake on my part which i do no pinpoint 



(setf pitch (rnd-repeat '(60) '(c5 d5 e5 f5 e5 bb5 g5 a5 b5 c6)))
(setf color (tonality-map '(heptonia-seconda :root c3 :remove 1)
                          (rnd-repeat '(60) '(c5 d5 e5 f5 e5 bb5 g5 a5 b5 c6))))

(setf rhyt (rnd-repeat '(1000) '(s -s -e e)))
(setf rhyt2 (rnd-repeat '(50) '(h q)))
(setf main-span (get-span rhyt))
(setf rhyt2-span (length-span main-span rhyt2))

(setf piano-righthand
       :length rhyt
       :pitch color
       :velocity '(mp)))

(setf piano-lefthand
       :length rhyt2-span        
       :pitch color
       :velocity '(f)))

(setf timesigs (get-time-signature piano-righthand))

(def-score Stage-4          
          (:key-signature 'atonal         
                          :time-signature  timesigs            
                          :tempo 80
                          :layout (piano-layout 'piano-rh 'piano-lh))
   :omn piano-righthand
   :channel 1
   :sound 'gm
   :program 'acoustic-grand-piano) 
   :omn piano-lefthand))
Link to comment
Share on other sites

There is no need in your score to use GET-TIME-SIGNATURE function

(setf timesigs (get-time-signature piano-righthand))

because there is only one list.


:time-signature timesigs


:time-signature  '(4 4)
Edited by opmo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use Privacy Policy