Re: Removing 2sd intervals

2017-04-27 Thread David Nalesnik
On Thu, Apr 27, 2017 at 5:43 PM, nycgdf  wrote:
> I don't know how to for-each on a music object.
>
>

There are a number of useful functions: musicMap (defined in
ly/music-functions-init.ly); for-some-music, map-some-music,
fold-some-music (in scm/music-functions.scm).  Maybe you can get use
out of one of these, either directly or as inspiration.

The lists should have a few examples of at least one or two of these.

Hope this helps a little.

David

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Implement extra-offset for system positioning (issue 324810043 by david.nales...@gmail.com)

2017-04-27 Thread david . nalesnik

Reviewers: ,

Message:
Please review.  Thanks!



Description:
Implement extra-offset for system positioning

Add the property 'extra-offset to 'line-break-system-details.

It is possible to position systems absolutely using the properties
'X-offset and 'Y-offset of 'line-break-system-details.  Placement,
however, is relative to the top left of the usable space, and can
be difficult to gauge without considerable trial and error.

An 'extra-offset property allows easy movement of systems relative
to where they currently are on the page--either through their
default positioning, or as a result of absolute positioning through
'X-offset and/or 'Y-offset.

System separators will be properly positioned. (Thanks go to Thomas
Morley.)

Please review this at https://codereview.appspot.com/324810043/

Affected files (+89, -6 lines):
  M Documentation/notation/spacing.itely
  A input/regression/page-layout-extra-offset.ly
  M scm/page.scm


Index: Documentation/notation/spacing.itely
diff --git a/Documentation/notation/spacing.itely  
b/Documentation/notation/spacing.itely
index  
fb455c1fdd55f52c4e03459eef336c44f0a6f2e5..9bb7eacca239cf59f9f7e206f6526e57d8d689f0  
100644

--- a/Documentation/notation/spacing.itely
+++ b/Documentation/notation/spacing.itely
@@ -2440,11 +2440,12 @@ padding,  
@code{NonMusicalPaperColumn.line-break-system-details}

 can specify exact vertical positions on the page.

 @code{NonMusicalPaperColumn.line-break-system-details} accepts
-an associative list of three different settings:
+an associative list of four different settings:

 @itemize
 @item @code{X-offset}
 @item @code{Y-offset}
+@item @code{extra-offset}
 @item @code{alignment-distances}
 @end itemize

@@ -2557,6 +2558,41 @@ potentially many values, but that we set only one  
value here.  Note,

 too, that the @code{Y-offset} property here determines the exact vertical
 position on the page at which each new system will render.

+In contrast to the absolute positioning available through
+@code{Y-offset} and @code{X-offset}, relative positioning is possible
+with the @code{extra-offset} property of
+@code{line-break-system-details}.  Placement is relative to the
+default layout or to the absolute positioning created by setting
+@code{X-offset} and @code{Y-offset}.  The property @code{extra-offset}
+accepts a @code{pair} consisting of displacements along the X-axis and
+Y-axis.
+
+@lilypond[verbatim,quote,staffsize=16]
+\header { tagline = ##f }
+\paper { left-margin = 0\mm }
+\book {
+  \score {
+<<
+  \new Staff <<
+\new Voice {
+  s1*5 \break
+  \overrideProperty  
Score.NonMusicalPaperColumn.line-break-system-details

+#'((extra-offset . (0 . 10)))
+  s1*5 \break
+  \overrideProperty  
Score.NonMusicalPaperColumn.line-break-system-details

+#'((extra-offset . (0 . 10)))
+  s1*5 \break
+}
+\new Voice { \repeat unfold 15 { c'4 c' c' c' } }
+  >>
+  \new Staff {
+\repeat unfold 15 { d'4 d' d' d' }
+  }
+>>
+  }
+}
+@end lilypond
+
 Now that we have set the vertical startpoint of each system
 explicitly, we can also set the vertical distances between staves
 within each system manually.  We do this using the  
@code{alignment-distances}

Index: input/regression/page-layout-extra-offset.ly
diff --git a/input/regression/page-layout-extra-offset.ly  
b/input/regression/page-layout-extra-offset.ly

new file mode 100644
index  
..3cc52e1b751736ff3401563f671d034393a6

--- /dev/null
+++ b/input/regression/page-layout-extra-offset.ly
@@ -0,0 +1,45 @@
+\version "2.19.60"
+
+\header {
+  texidoc = "By setting @code{extra-offset} within the
+@code{line-break-system-details} of @code{NonMusicalPaperColumn},
+systems may be moved in relation either to their default position on the
+printable area of the page or the absolute position pecified by
+@code{X-offset} or @code{Y-offset} within
+@code{line-break-system-details}."
+
+}
+
+#(set-default-paper-size "a6" 'portrait)
+
+\paper {
+  indent = 0.0
+  oddHeaderMarkup = "header"
+  oddFooterMarkup = "footer"
+  system-separator-markup = \slashSeparator
+  ragged-right = ##t
+}
+
+\book {
+  \score {
+{
+  \overrideProperty
+  Score.NonMusicalPaperColumn.line-break-system-details
+  #'((extra-offset . (8.0 . 0.0)))
+  c1 c1 \break
+
+  \overrideProperty
+  Score.NonMusicalPaperColumn.line-break-system-details
+  #'((extra-offset . (12.0 . 8.0)))
+  c1 c1 \break
+
+  \overrideProperty
+  Score.NonMusicalPaperColumn.line-break-system-details
+  #'((X-offset . 8.0)
+ (Y-offset . 36.0)
+ (extra-offset . (-8.0 . 30.0))
+  )
+  c1 c1
+}
+  }
+}
Index: scm/page.scm
diff --git a/scm/page.scm b/scm/page.scm
index  
c6e69658cea45b8c1cfac5f770b7b9ce10c0a3e9..910ace902d41a330a8b7be0d735cc6ea212b95de  
100644

--- a/scm/page.scm
+++ b/scm/page.scm
@@ -227,7 +227,7 @@
 

Re: Removing 2sd intervals

2017-04-27 Thread nycgdf
I don't know how to for-each on a music object.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Removing-2sd-intervals-tp202646p202728.html
Sent from the Dev mailing list archive at Nabble.com.

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


PATCHES - Countdown for April 27th

2017-04-27 Thread James
Hello,

Here is the current patch countdown list. The next countdown will be on
April 30th.

A quick synopsis of all patches currently in the review process can be
found here:

http://philholmes.net/lilypond/allura/





Push: No patches to Push at this time.


Countdown


5125 Don't use SCM_CELL_WORD_1 internal - David Kastrup
https://sourceforge.net/p/testlilyissues/issues/5125
http://codereview.appspot.com/320880043


5123 Improve elbowed-hairpin - Thomas Morley
https://sourceforge.net/p/testlilyissues/issues/5123
http://codereview.appspot.com/324800043


Review: No patches in review at this time.


New


5124 Slashed Half-flat and add. scales for Arabic music - Amir Czwink
https://sourceforge.net/p/testlilyissues/issues/5124
http://codereview.appspot.com/317550043



Regards

James

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel