summaryrefslogtreecommitdiff
path: root/lily/percent-repeat-item.cc
Commit message (Collapse)AuthorAgeFilesLines
* Issue 4365: non-member unsmob<T> replaces T::unsmob and T::is_smobDan Eble2015-05-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | Hide Smob_base<>::is_smob() to prevent the misleading situation of D::is_smob(S) returning true when S represents an ancestor of D rather than a D. This issue was previously worked around by overriding is_smob in several derived smob classes; that is no longer needed. LY_ASSERT_SMOB() now returns a smob pointer. This is not used yet, but is available for future use to avoid unsmobbing twice. Smob_base<>::smob_p() is hidden because there doesn't seem to be a need for it to be public. Files in lily/include were edited by hand. Files in lily itself were processed with the following sed script. s/\([A-Za-z_]\+\)::derived_unsmob/unsmob<\1>/g s/derived_unsmob *<\([A-Za-z_]\+\)>/unsmob<\1>/g s/\([A-Za-z_]\+\)::unsmob/unsmob<\1>/g s/\([A-Za-z_]\+\)::is_smob/unsmob<\1>/g s/Input \*\([A-Za-z_]\+\) = unsmob /Input *\1 = unsmob<Input> /g s/LY_ASSERT_SMOB (\([^)]*\))$/LY_ASSERT_SMOB (\1);/g
* Run grand replace for 2015.Werner Lemberg2015-01-041-1/+1
|
* Replace remaining uses of unsmob_xxx with Xxx::unsmobDavid Kastrup2014-08-021-1/+1
| | | | | | | | This runs sed -i 's/unsmob_\(engraver\|global_context\|input\|item\|music\|paper_score\|performance\|performer\|spanner\|stream_event\)\b/\u\1::unsmob/g' $(git grep -l unsmob_ lily) as the mechanical part of the conversion. A separate commit provides the required definitions.
* unsmob_pitch -> Pitch::unsmob and relatedDavid Kastrup2014-08-021-2/+2
| | | | | | | | | | | | | | This is part of moving away from implementing LilyPond infrastructure via the C preprocessor rather than C++ features since C++ features tend to be more transparent to IDEs, debuggers, editors, and newcomers. sed -i "$(git grep -h DECLARE_UNSMOB|sed 's/.*(\(.*\), \(.*\)).*/s\/unsmob_\2\\b\/\1::unsmob\/g/')" $(git grep -l unsmob_) sed -i '/^DECLARE_UNSMOB/d' `git grep -l DECLARE_UNSMOB` git checkout Documentation/misc/CHANGES-1.3 (the changes to the CHANGES file are not useful). The definition of DECLARE_UNSMOB is removed in a separate commit.
* Run grand-replace (issue 3765)Carl Sorensen2014-01-111-1/+1
| | | | Run make grand-replace to update all coopyright statements
* Run grand-replace for 2012Graham Percival2012-01-091-1/+1
|
* Grand fixcc.py run on all .hh .cc files.Graham Percival2011-08-011-12/+12
| | | | | | | | | | | Apologies for the inconvenience in patch handling, but getting this done at once will cause less long-term problems than trying to do this piecemeal. Note for future git historians: this patch was created by running scripts/auxiliar/fixcc.py \ $(find flower lily -name '*cc' -o -name '*hh' | grep -v /out) with astyle 2.02 installed. No manual changes were made.
* Better support for beat slashes (multi-slash & mixed duration).Neil Puttock2011-02-131-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * input/regression/repeat-slash-mixed.ly, repeat-slash-multi.ly: new regtests * lily/context.cc (check_repeat_count_visibility): add repeat count visibility proc for use in percent repeat engravers * lily/double-percent-repeat-engraver.cc (new file): create separate engraver for double-measure percent repeats, which listens to DoublePercentEvent * lily/percent-repeat-engraver.cc: listen to PercentEvent and create single-measure repeats only * lily/percent-repeat-item.cc: (brew_slash, brew_slash): add count arg to set number of slashes read slash-count from event-cause * lily/percent-repeat-iterator.cc (get_music_list): send separate synthetic events for percent, double-percent and beat repeats use measure length to choose between full-measure types call scheme proc to get slash count for beat repeats * lily/slash-repeat-engraver.cc: listen to RepeatSlashEvent and use slash-count to switch between RepeatSlash and DoublePercentRepeat * ly/engraver-init.ly: add Double_percent_repeat_engraver to Voice context * scm/define-event-classes.scm (event-classes): add new classes (double-percent-event/repeat-slash-event) * scm/define-grobs.scm (all-grob-descriptions): add DoubleRepeatSlash set slash-negative-kern in RepeatSlash (required for multi-slash beat repeats) * scm/define-music-properties.scm (all-music-properties): doc slash-count * scm/define-music-types.scm (music-descriptions): add synthetic events DoublePercentEvent and RepeatSlashEvent * scm/music-functions.scm (calc-repeat-slash-count): new function used by Percent_repeat_iterator to check durations; returns either number of slashes (if all durations equal) or 0 (if durations vary)
* Admin: run yearly grand-replace.Graham Percival2011-01-131-1/+1
|
* Run grand-replace for 2010.Neil Puttock2010-01-231-1/+1
|
* Update source file headers. Fixes using standard GNU package conventions.Jan Nieuwenhuizen2009-11-251-3/+14
| | | | | | | | | | | | | | | | Signed-off-by: Han-Wen Nienhuys <hanwen@xs4all.nl> Signed-off-by: Jan Nieuwenhuizen <janneke@gnu.org> Signed-off-by: John Mandereau <john.mandereau@gmail.com> Signed-off-by: Graham Percival <graham@percival-music.ca> Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com> Signed-off-by: Joe Neeman <joeneeman@gmail.com> Signed-off-by: Heikki Johannes Junes <hjunes@gmail.com> Signed-off-by: Neil Puttock <n.puttock@gmail.com> Signed-off-by: Carl D. Sorensen <c_sorensen@byu.edu> Signed-off-by: Mats Bengtsson <mats.bengtsson@s3.kth.se> Signed-off-by: Werner Lemberg <wl@gnu.org> Signed-off-by: Patrick McCarty <pnorcks@gmail.com> Signed-off-by: Nicolas Sceaux <nicolas.sceaux@free.fr>
* Run grand-replace for 2009.Jan Nieuwenhuizen2009-01-061-1/+1
|
* Run `make grand-replace'.Jan Nieuwenhuizen2008-12-011-1/+1
|
* More tweakable percent repeat glyphs.Neil Puttock2008-11-221-8/+10
| | | | - use grob properties for dot_neg_kern and slash_neg_kern.
* ADD_INTERFACE: Formatting and fixing typos.Werner Lemberg2008-03-141-2/+4
|
* Remove outdated Stencil code.Han-Wen Nienhuys2007-01-171-3/+3
| | | | | | | | - Stencil::origin_ - Stencil::origin() - Stencil::moved_to_edge() - ly:stencil-moved-to-edge - minimum argument for Stencil::add_at_edge and ly:stencil-combine-at-edge
* add 2007 to (c) year.Han-Wen Nienhuys2007-01-081-1/+1
|
* use classnames for interface naming; remove inclusion ofHan-Wen Nienhuys2006-11-291-3/+2
| | | | grob/item/spanner headers in interface headers.
* uniformize grob interface naming with C++.Han-Wen Nienhuys2006-11-291-2/+4
|
* * The grand 2005-2006 replace.Jan Nieuwenhuizen2006-01-061-1/+1
|
* release commitHan-Wen Nienhuys2005-11-031-1/+1
|
* *** empty log message ***Han-Wen Nienhuys2005-09-121-2/+0
|
* * lily/tie-column.cc (set_manual_tie_configuration): new function.Han-Wen Nienhuys2005-09-121-1/+2
| | | | | | | | | | * lily/laissez-vibrer-tie.cc: new file. * lily/tie-column.cc (set_tie_config_directions): new function (final_shape_adjustment): new function. (shift_small_ties): new function. * lily/tie-column.cc (set_chord_outline): new function.
* Nitpick run.Jan Nieuwenhuizen2005-08-131-3/+1
| | | | buildscripts/fixcc.py: Fixes.
* * flowerJan Nieuwenhuizen2005-03-101-17/+14
| | | | | * lily * kpath-guile: Nitpick run: buildscripts/fixcc.py.
* new file.Han-Wen Nienhuys2005-03-081-1/+1
|
* * scm/music-functions.scm (has-request-chord): don't useHan-Wen Nienhuys2005-02-041-6/+6
| | | | | | | | | | ly:music-name anywhere. Fixes <<\\>> notation. * lily/pango-font.cc (pango_item_string_stencil): bugfix: don't crash if psname is null. * lily/pango-font.cc (physical_font_tab): new member. Store PSname -> font_filename mapping.
* *** empty log message ***Han-Wen Nienhuys2005-01-311-1/+1
|
* *** empty log message ***Han-Wen Nienhuys2004-12-101-1/+1
|
* *** empty log message ***Han-Wen Nienhuys2004-12-061-1/+1
|
* * configure.in: Test for and accept lmodern if EC fonts not found.Jan Nieuwenhuizen2004-11-181-6/+4
| | | | | | | | | | | | | | | | | | | | * Debian lmodern support. * scm/framework-tex.scm (font-load-command): TeX font name mangling for latin1 encoded cork-lm fonts. (convert-to-ps): Load lm.map if available. * ly/paper-defaults.ly: Use cork-lm encoding if ec is not available. * scm/encoding.scm (coding-alist): Add cork-lm encoding. * scm/font.scm: Add header. Autoload cork-lm and ec fonts if available. * lily/kpath.cc (ly_kpathsea_find_file): Rename. Do not use path for absolute file name, that is silly. * lily/score-engraver.cc (initialize):
* * lily/accidental-placement.cc (position_accidentals): bugfix inHan-Wen Nienhuys2004-03-081-2/+2
| | | | | | | | | | | | | offset, this fixes right-padding of AccidentalPlacement. * Documentation/user/tutorial.itely (An orchestral part): more fixes for the tutorial. * lily/parser.yy (context_def_spec_block): use \context instead of \translator. * Documentation/user/tutorial.itely (Automatic and manual beams): editing of tutorial.
* (LY_DEFINE): use Scheme style naming forHan-Wen Nienhuys2004-02-221-2/+2
| | | | | music/context/grob property functions. Internally, use get_property() and set_property() for both.
* ($(outdir)/%.pdf): add DVIPS_FLAGS. This willHan-Wen Nienhuys2004-02-131-10/+10
| | | | | | | | | | | | | | | | | | create scalable PS and PDFs for input/{test,template,regression}. * lily/context.cc (is_alias): move function. (is_alias): add Bottom as context alias. (find_create_translator): add Bottom as a context alias for creation. * lily/stencil.cc: rename Molecule to Stencil. Changes throughout. * lily/parser.yy (music_property_def): new syntax for property assignments: \set A.B = #C , \unset A.B \override A.B #C = #D, \revert A.B #C * lily/my-lily-lexer.cc: remove \property
* 2003 -> 2004Han-Wen Nienhuys2004-02-051-1/+1
|
* * lily/lily-guile.cc (robust_scm2double): new function. Use throughout.Han-Wen Nienhuys2004-01-181-2/+2
| | | | | | | | | | | | | | | | * lily/hairpin.cc: use Line_interface * lily/tuplet-bracket.cc (make_bracket): use Line_interface. * lily/mensural-ligature.cc (brew_flexa): replace horizontal_slope () with beam (). * lily/beam.cc (position_beam): new function (brew_molecule): make sure that positions are calced before making the molecule. * lily/beam.cc (brew_molecule): fix beam offsets: overlap with the stem do avoid small dents.
* *** empty log message ***Han-Wen Nienhuys2003-01-121-1/+1
|
* 2002-12-06 Han-Wen Nienhuys <hanwen@cs.uu.nl>Han-Wen Nienhuys2002-12-071-3/+3
| | | | | | | | | | | | | * lily/molecule-scheme.cc: move scheme functions to separate file. * lily/font-metric.cc (ly_get_glyph): new function. * scm/new-markup.scm (column-markup): use baseline-skip for columns. (italic-markup, dynamic-markup): new functions (font-markup): new function * lily/molecule.cc (ly_molecule_combined_at_edge): optional padding and minimum
* release: 1.5.47Han-Wen Nienhuys2002-03-241-3/+3
|
* release: 1.5.29Han-Wen Nienhuys2002-02-011-1/+1
|
* patch::: 1.3.141.jcn3Jan Nieuwenhuizen2001-03-241-0/+85
1.3.141.jcn3 ============ * some mup2ly progress. * Bugfix: ly2dvi: don't include empty set fo latexheaders, don't use python-1.5.2 abspath func.