Jump to content

Pitch-melodize Function

Recommended Posts

The documentation of pitch-melodize says that when it is called with :type :divide, it will preserve the original duration.


It works correctly in the following case:

(pitch-melodize '(h. c4e4g4 q d4) :type :divide)

=> (q c4 e4 g4 d4)


But what about this case:

(pitch-melodize '(h. c4e4g4 -q) :type :divide)

=> (q c4 e4 g4)


You can see that the last '-q' (rest) has been discarded. This changes the time signature from 4/4 to 3/4, which to me is different from the spec.


Is this the intended behaviour?



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