Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(290)

Issue 906045: Rationalize string number handling for notes and chords (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by Carl
Modified:
14 years, 1 month ago
Reviewers:
Neil Puttock
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Rationalize string number handling for notes and chords Enable the use of both articulations and events for handling string numbers, while still allowing only some notes to have string numbers. Create articulations.cc to house the common code used by both tab-note-heads-engraver and fretboards-engraver to get string numbers from the music stream. This same code can be used for string-bend articulations and events. Create a regression test to demonstrate that the code will work with string numbers partially specified.

Patch Set 1 #

Total comments: 22

Patch Set 2 : Respond to Neil's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -130 lines) Patch
M input/regression/tablature.ly View 1 chunk +2 lines, -1 line 0 comments Download
A lily/articulations.cc View 1 1 chunk +85 lines, -0 lines 0 comments Download
M lily/fretboard-engraver.cc View 1 5 chunks +19 lines, -59 lines 0 comments Download
A lily/include/articulations.hh View 1 1 chunk +31 lines, -0 lines 0 comments Download
M lily/tab-note-heads-engraver.cc View 1 5 chunks +30 lines, -70 lines 0 comments Download

Messages

Total messages: 2
Neil Puttock
Hi Carl, LGTM. Regarding the style nitpicks, fixcc.py will sort all these out automatically (though ...
14 years, 1 month ago (2010-04-12 20:12:31 UTC) #1
Carl
14 years, 1 month ago (2010-04-13 02:32:40 UTC) #2
http://codereview.appspot.com/906045/diff/1/3
File lily/articulations.cc (right):

http://codereview.appspot.com/906045/diff/1/3#newcode4
lily/articulations.cc:4: Copyright (C) 2010--2010  Carl Sorensen
<c_sorensen@byu.edu>
On 2010/04/12 20:12:31, Neil Puttock wrote:
> 2010  Carl Sorensen
> 
> (make grand-replace will fail to update otherwise)

Done, and in lily/include/articulations.hh

http://codereview.appspot.com/906045/diff/1/3#newcode39
lily/articulations.cc:39: const char* articulation_name)
On 2010/04/12 20:12:31, Neil Puttock wrote:
> char const *articulation_name

Thanks!  I wasn't sure what the preferred way of doing this was.  Done.

http://codereview.appspot.com/906045/diff/1/3#newcode86
lily/articulations.cc:86: return (articulations);
On 2010/04/12 20:12:31, Neil Puttock wrote:
> return scm_reverse (articulations);

Yep -- this was leftover cruft from a previous incarnation of this function. 
Thanks for the catch.

http://codereview.appspot.com/906045/diff/1/5
File lily/include/articulations.hh (right):

http://codereview.appspot.com/906045/diff/1/5#newcode4
lily/include/articulations.hh:4: Copyright (C) 2010--2010 Carl Sorensen
<c_sorensen@byu.edu>
On 2010/04/12 20:12:31, Neil Puttock wrote:
> 2010 Carl Sorensen

Done.

http://codereview.appspot.com/906045/diff/1/5#newcode26
lily/include/articulations.hh:26: SCM articulation_list (vector<Stream_event*>
notes,
On 2010/04/12 20:12:31, Neil Puttock wrote:
> Stream_event *

Done.

http://codereview.appspot.com/906045/diff/1/5#newcode27
lily/include/articulations.hh:27: vector<Stream_event*> articulations,
On 2010/04/12 20:12:31, Neil Puttock wrote:
> Stream_event *

Done.

http://codereview.appspot.com/906045/diff/1/5#newcode28
lily/include/articulations.hh:28: const char* articulation_name);
On 2010/04/12 20:12:31, Neil Puttock wrote:
> char const *articulation_name

Done.

http://codereview.appspot.com/906045/diff/1/6
File lily/tab-note-heads-engraver.cc (right):

http://codereview.appspot.com/906045/diff/1/6#newcode83
lily/tab-note-heads-engraver.cc:83: SCM tab_notes =
ly_cxx_vector_to_list(note_events_);
On 2010/04/12 20:12:31, Neil Puttock wrote:
> ly_cxx_vector_to_list (note_events_); 

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b