playout symduration for rests positive?

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
Julien_Vincenot
Posts: 36
Joined: Fri Apr 26, 2013 8:01 am

playout symduration for rests positive?

Post by Julien_Vincenot » Tue Jan 31, 2023 4:02 pm

Hello,

I'm not sure if that's a feature or a bug?

I made a selective dump in one of MOZ'Lib's score modules (based on bach.score),
and someone reported to me that all the rests became positive when using it... 😅

For me it looks like an internal representation design choice,
but it doesn't make complete sense if I look at the full score dump.
There rests are all negative, unless I missed something?

Thanks !

Julien
Attachments
Capture d’écran 2023-01-31 à 11.51.29 PM.jpg
Capture d’écran 2023-01-31 à 11.51.29 PM.jpg (248.51 KiB) Viewed 19165 times
--
Julien Vincenot
creator of the MOZ'Lib package

danieleghisi
Site Admin
Posts: 1349
Joined: Fri Dec 03, 2010 1:25 pm

Re: playout symduration for rests positive?

Post by danieleghisi » Wed Feb 01, 2023 8:48 am

Hello,

indeed you are right, it is a quirk. That said, I for one do not like any longer this OM-borrowed idea that negative durations are rests. It is convenient sometimes, but it is also semantically troublesome. If you also put cents, rests are simply durations corresponding to nil-cents: []. So you can already put positive durations for rests, just without giving any pitch.
I'd like to put an attribute at some point that would be able to disable the behavoir.
But you are correct: as long as rests are played, they should be consistent with everything else and have negative durations at output.
I'll put it on the to do list.
d

Julien_Vincenot
Posts: 36
Joined: Fri Apr 26, 2013 8:01 am

Re: playout symduration for rests positive?

Post by Julien_Vincenot » Wed Feb 08, 2023 3:49 am

Oh I didn't get the notification, thanks for your reply Daniele !
--
Julien Vincenot
creator of the MOZ'Lib package

danieleghisi
Site Admin
Posts: 1349
Joined: Fri Dec 03, 2010 1:25 pm

Re: playout symduration for rests positive?

Post by danieleghisi » Sat Apr 08, 2023 5:34 pm

I've added a @outputnegativerests attribute with some standard values for a future release.

Best,
Daniele

Julien_Vincenot
Posts: 36
Joined: Fri Apr 26, 2013 8:01 am

Re: playout symduration for rests positive?

Post by Julien_Vincenot » Tue Apr 11, 2023 9:19 am

Excellent, thanks Daniele !
--
Julien Vincenot
creator of the MOZ'Lib package

Post Reply