Jump to content

Featured Replies

Posted

I’m trying to merge two voices, but the grace notes get lost in the process. What do I need to do differently? Thanks for any advice!

Greetings

André

(setf v1 '(-1/4  1/28 eb5 p ten a4 bb2 ff ten+marc (-acc 1/8 gs4 mf leg) 1/28 b4 ppppp ten -3/28))
(setf v2 '(-6/28 (-acc 1/8 f6 ff) 3/28 d4e9 pppp ten -5/28))

(merge-voices v1 v2)
=> (-7w. 7q^7h. d4e9 pppp ten eb5 p ten a4 bb2 ff ten+marc b4 ppppp ten -7h.)

  • Author

any solutions?

  • Author

A little hint for the community? :-)

  • 3 weeks later...
  • Author

Weird notation shows up when I merge the following voices—on their own, there’s no problem.

;; two versions

(setf v1 '((-3he d4 pppp - d4 - d4) (-3he d4 pppp - d4 - -)))
(setf v2 '((-7wq - eb5 pppp ten - eb5 ten - eb5 ten) (-7wq eb5 pppp ten - eb5 ten - - -)))

(merge-voices v1 v2)

(setf v1 '(-3he d4 pppp - d4 - d4 -3he d4 pppp - d4 - -))
(setf v2 '(-7wq - eb5 pppp ten - eb5 ten - eb5 ten -7wq eb5 pppp ten - eb5 ten - - -))

(merge-voices v1 v2)

I would always avoid merging complex material using the merge-voices function.

The function is useful for simple merges where length is not part of complex divisions.

The best way to merge them is to do so at the def-score level in the layout.

(setf v1 '((-3he d4 pppp - d4 - d4) (-3he d4 pppp - d4 - -)))
(setf v2 '((-7wq - eb5 pppp ten - eb5 ten - eb5 ten) (-7wq eb5 pppp ten - eb5 ten - - -)))

(def-score test
    (:key-signature '(c maj)
     :time-signature '(4 4) 
     :tempo '(q 120)
     :layout '(:treble inst1 inst2))
  
  (inst1
   :omn v1
   :channel 1
   :sound 'gm
   :program 0)
  (inst2
   :omn v2
   :channel 1
   :sound 'gm
   :program 0)
  )

merge-voices.png

With grace note merge at the moment we are getting messy display, it is a bug.

A wonderful tip! Thank you!

Create an account or sign in to comment


Copyright © 2014-2025 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Important Information

Terms of Use Privacy Policy