Jump to content

OMN decoding problem with ties


Recommended Posts

The tie is a special case and is not part of the length.
 

(setf len (omn-merge-ties '((q c5 b4 q. a4 e g4) (q db4 tie e e c4 bb3 ab4 q f4))))
(omn :length len)
=> ((1/4 1/4 3/8 1/8) (3/8 1/8 1/8 1/8 1/4))


Example:

(disassemble-omn len)
=> (:length ((1/4 1/4 3/8 1/8) (1/4 1/8 1/8 1/8 1/8 1/4))
            :pitch ((c5 b4 a4 g4) (db4 db4 c4 bb3 ab4 f4))
            :velocity ((mf mf mf mf) (mf mf mf mf mf mf))
            :articulation ((- - - -) (tie - - - - -)))
(apply 'make-omn (disassemble-omn len))
=> ((q c5 b4 q. a4 e g4) (q db4 tie e e c4 bb3 ab4 q f4))

 

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