Hello Miguel,
I've only been coding LP for a short while so my suggestion may not be
the best way. I took your code and changed 2 things:
1. the existing Staff definition was problematic, I couldn't understand
the errors, so suggest this Staff definition before the music,
\new Staff = "bassStaff"
\with { instrumentName = #"Bass" }
<<
\musicInHere
>>
2. Also, it seems as though Sta@.midiInstrument is incorrect, should be
Staff.midiInstrument
When I made these changes I compiled LP successfully (using version
2.22.0) except for the bar check failure on the last line of music. Thus,
\new Staff = "bassStaff"
\with { instrumentName = #"Bass" }
<<
{
\clef bass
\set Staff.midiInstrument = #"acoustic bass"
\stemDown
\numericTimeSignature\time 4/4
\key g\minor
\autoBeamOn
% -- BASS VERSE_A
g,4 d,8 g,4 d,8 c4 |
g,8 d,4 r8 d,8 g,8 g,8 d,8 |
g,8 d,4 c4 d,4 r8 |
d,4 g,4 d,8 g,4 d,8 |
% --
c4 g,8 d,4 r8 d,8 g,8 |
% --
g,8 d,4 g,8 d,8 c8 g,4 |
r8 d,8 g,4 d,8 g,4 d,8|
c,4 g,8 d,4 r8 c,8 g,8 |
d,8 g,8 g,4 d,4 d,4 |
g,,4. r8 d,8 g,4 c,8 |
g,4 c,8 c4 g,8 d,4 |
d,8 d,4 g,8 d,4 g,4 |
d,4 g,4 g,,4. r8 r8 | % -- bar check failure here, 1/8 note (or
rest) too many :)
}
>>
Hope that helps.
On 2021-02-11 13:11, Miguel Abrams wrote:
Dear community:
I am reaching out for assistance in regard to the following error.
Although I regard my knowledge of Lilypond to be primary, I have been
a more than excited user for over two years now, and have never come
across an error which I could not 'somehow' work around, at least
until now.
The following error was reported and archived in 2009, by another user
(JUNE 3 2019, (2.19.82).
However, I have been unable to find its resolution in the Archive. The
error has now happened to my code, and I require some assistance to
get by it.
_________________________________
I am using MAC OS 10.13.6 HIgh Sierra, and Lilypond 2.19.55
_________________________________
The compile and subsequent engraver output fails, unless I replace a
'note' with a rest.
ERROR :
v/Parsing...Interpreting music...[8][16][24][32][40][48][56]ERROR: In
procedure ly:trampoline:ERROR: Wrong type argument in position 3
(expecting Translator): #<freed cell 0x5e6cb90; GC missed a
reference>Exited with return code 1
____________
I provide a clip of the code below where the error is invoked, as
shown in between
the 2 % % marks. The error seems to point to the 2nd last note the
'flagged' measure.
Please note that if I replace that beat with an r8, the compile and
engraver run successfully.
If I leave a note in that position, the error is invoked.
It appears to me, as noted in this email, that the same error had been
reported in June 2019.
____________
Also, I am using in this piece the Add Lyrics functionality.
____________
%%%
new Staff{ \with { instrumentName = #"Bass" }
{
\clef bass
\set Sta@.midiInstrument = #"acoustic bass"
\stemDown \numericTimeSignature\time 4/4
\key g\minor
\autoBeamOn
%BASS VERSE_A
g,4 d,8 g,4 d,8 c4 |
g,8 d,4 r8 d,8 g,8 g,8 d,8 |
g,8 d,4 c4 d,4 r8 |
d,4 g,4 d,8 g,4 d,8 |
%
c4 g,8 d,4 r8 d,8 g,8 |
%
g,8 d,4 g,8 d,8 c8 g,4 |
r8 d,8 g,4 d,8 g,4 d,8|
c,4 g,8 d,4 r8 c,8 g,8 |
d,8 g,8 g,4 d,4 d,4 |
g,,4. r8 d,8 g,4 c,8 |
g,4 c,8 c4 g,8 d,4 |
d,8 d,4 g,8 d,4 g,4 |
d,4 g,4 g,,4. r8 r8 |
___________________
An assistance will be most appreciated.
Michael Abrams
miguelabram...@gmail.com <mailto:miguelabram...@gmail.com>