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
playout symduration for rests positive?
-
- Posts: 36
- Joined: Fri Apr 26, 2013 8:01 am
playout symduration for rests positive?
- Attachments
-
- Capture d’écran 2023-01-31 à 11.51.29 PM.jpg (248.51 KiB) Viewed 19163 times
-
- Site Admin
- Posts: 1349
- Joined: Fri Dec 03, 2010 1:25 pm
Re: playout symduration for rests positive?
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
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
-
- Posts: 36
- Joined: Fri Apr 26, 2013 8:01 am
Re: playout symduration for rests positive?
Oh I didn't get the notification, thanks for your reply Daniele !
-
- Site Admin
- Posts: 1349
- Joined: Fri Dec 03, 2010 1:25 pm
Re: playout symduration for rests positive?
I've added a @outputnegativerests attribute with some standard values for a future release.
Best,
Daniele
Best,
Daniele
-
- Posts: 36
- Joined: Fri Apr 26, 2013 8:01 am
Re: playout symduration for rests positive?
Excellent, thanks Daniele !