bugDenemo - Bugs: bug #32299, GetDots

 
 

bug #32299: GetDots

Submitted by:  None
Submitted on:  Sun 30 Jan 2011 11:03:00 PM UTC  
 
Category: Feature requestSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: -Deleted Account- <steele>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>In charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 31 Jan 2011 10:42:49 AM UTCsteeleStatusNone=>Fixed
      Assigned toNone=>steele
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1