bugDenemo - Bugs: bug #32299, GetDots

 
 

bug #32299: GetDots

Submitter:  None
Submitted:  Sun 30 Jan 2011 11:03:00 PM UTC
   
 
Category:  Feature request Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  steele
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 31 Jan 2011 10:42:27 AM UTC, comment #1: 

denemo.scm has a whole section dedicated to that topic.
However there is no documentation (see mailinglist in the near future).
seach for "Duration Conversions between Denemo, Lilypond and Tick syntax."

You have three functions to return the number of dots as number.
(d-GetDots) ; for cursor position.
(duration::GetNumberOfDotsInLilypond "lilypondstring")
(duration::GetNumberOfDotsInDenemo "denemostring")

And there is a tick function, which is not complete because we don't have a way to get ticks for tupletmembers.
But for the sake of completeness:
(duration::CalculateDotsFromTicks ticks base)

To apply a number of dots in Denemo use
(Repeat d-AddDot number)

There is however still no function to guess what is the best way of entering real notes when you only have a tick value. I have not found a good logical solution for this problem yet (the technical side is not hard).

This is the way how Augment/Diminish works: Get the base duration, multiply it with 2 and get the dots to send it to (duration::ChangeNoteDurationInTicks ticks dots).

(duration::ChangeNoteDurationInTicks (* (duration::GetBaseDurationInTicks) 2) (d-GetDots))

ChangeNoteDurationInTicks has a table to map ticks to real note duration so you better feed it only with real base duration.

-Deleted Account- <steele>
Sun 30 Jan 2011 11:03:00 PM UTC, original submission:  

To compliment GetBaseDurationInTicks, a scheme command to get the number of dots on a chord/note would be very handy.  It is possible to get this information using GetNoteDuration but currently that returns just #f for breve and longa.
Or is this already implemented somehow?
-DW

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by steele (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-31 steele StatusNone Fixed
        Assigned toNone steele
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code