Jump to content

Keywords as instrument identifiers in def-score?


Recommended Posts

I would like to use keywords as instrument identifiers in def-score like shown below.

(def-score flute
           (:key-signature 'chromatic
            :time-signature '(4 4)
            :tempo 100
            :layout (flute-layout :flute)) 
  (:flute
   :omn '((q c5 d5 f5 g5) (q c5 d5 f5 g5))))

 

Unfortunately, this does not work for generating notation, only the playback works.

 

The reason I would like to use keywords is that this would provide a more smooth integration with the format I am using for polyphonic score transformations, which looks like shown below (short example for violin and cello). See code examples at https://github.com/tanders/tot/blob/master/sources/score.lisp; you can see the documentation of this code at http://htmlpreview.github.com/?https://github.com/tanders/tot/blob/master/doc/sources/score.html

'(:vln ((q g4) (q. c5 e d5 q e5 f5) (h. e5))
  :vlc ((q g3) (q c4 b3 a3 g3) (h. c3)))

 

If it is not possible to have keywords as instrument identifiers in def-score then I can of course transform my keywords automatically into symbols in the Opusmodus package, but I would first like to know whether disallowing keywords in def-score is intentional. 

 

Best,

Torsten

Link to comment
Share on other sites

You can use keyword as instrument identifiers.

Example without the :layer: will work:

(def-score flute
           (:key-signature 'chromatic
            :time-signature '(4 4)
            :tempo 100)
  (:flute :omn '((q c5 d5 f5 g5) (q c5 d5 f5 g5))))

To do that we would need to make a change to the layout instruments.

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