Jump to content

Multiple def-scores?


Recommended Posts

Ah OK in that case I need help because when I evaluate a Composer document with multiple def-score's in it, it will always evaluate the last one in the document. If I have a def-score higher up, I cannot evaluate that one. 

To evaluate a def-score... it does not involve highlighting the parentheses so how does OM decide which one to evaluate?

Thanks.

Link to comment
Share on other sites

Each DEF-SCORE instance is a score. If you have two DEF-SCORE instances then it means you have two scores in one file.

 

Example:

(def-score score1
           (:key-signature 'atonal
            :time-signature '(4 4)
            :tempo 120)

  (ins :omn '(s c5 d5 e5 f5 g5 a5 b5)
       :channel 1
       :sound 'gm
       :program 0))

(def-score score2
           (:key-signature 'atonal
            :time-signature '(4 4)
            :tempo 120)

  (ins :omn '(e c4 d4 e4 f4 g4 a4 b4)
       :channel 1
       :sound 'gm
       :program 0))

;;; Midi Player
;(display-midi 'score1)
;(display-midi 'score2)

;;; Notation
;(display-musicxml 'score1)
;(display-musicxml 'score2)

 

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.

Guest
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