Can someone tells me what wrong with my code?
**\version "2.22.1"
% this is my first score
\language "english"
\header {
title = "Aint Necessarily So"
%composer = " "
subtitle = "Bronski Beat"
} %/ end header
%%%%%%%%% Function Declarations
fdo = #(define-music-function () ()
#{
\pad
_\markup {
\center-column {
\override #'(size . 0.7) {
\woodwind-diagram #'flute #'((cc . (oneF two three four five six))
(lh . ())
(rh . ()))
}}}
#})
fre = #(define-music-function () ()
#{
\pad
_\markup {
\center-column {
\override #'(size . 0.7) {
\woodwind-diagram #'flute #'((cc . (oneF two three four five))
(lh . ())
(rh . ()))
} } }
#})
fmi = #(define-music-function () ()
#{
\pad
_\markup {
\center-column {
\override #'(size . 0.7) {
\woodwind-diagram #'flute #'((cc . (oneF two three five))
(lh . ())
(rh . ()))
} } }
#})
ffa = #(define-music-function () ()
#{
\pad
_\markup {
\center-column {
\override #'(size . 0.7) {
\woodwind-diagram #'flute #'((cc . (oneF two five))
(lh . ())
(rh . ()))
} } }
#})
fsol = #(define-music-function () ()
#{
\pad
_\markup {
\center-column {
\override #'(size . 0.7) {
\woodwind-diagram #'flute #'((cc . (two five))
(lh . ())
(rh . ()))
} } }
#})
fla = #(define-music-function () ()
#{
\pad
_\markup {
\center-column {
\override #'(size . 0.7) {
\woodwind-diagram #'flute #'((cc . (oneF two three four five))
(lh . ())
(rh . ()))
} } }
#})
fsi = #(define-music-function () ()
#{
\pad
_\markup
\center-column
\override #'(size . 0.7) {
\woodwind-diagram #'flute #'((cc . (oneF two three four))
(lh . ())
(rh . ()))
}
#})
pad = \once \override TextScript.padding = #4
\relative {
\key g \minor
\numericTimeSignature
\time 4/4
\fdo g'8
\fre d'4 \fre d8 \fsol g4, \fdo c4 \fdo c4 \fsol g4
\fsi b2.
}**
please, see log errors and warnings - how is the easy to prevent them?
Starting lilypond-windows.exe 2.22.1 [Aint-Necessarily-So.ly]... Processing `C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly' Parsing... C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:106:3: warning: Unattached TextScriptEvent
\fdo g'8
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:3: warning: Unattached TextScriptEvent
\fre d'4 \fre d8 \fsol g4, \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:13: warning: Unattached TextScriptEvent
\fre d'4
\fre d8 \fsol g4, \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:22: warning: Unattached TextScriptEvent
\fre d'4 \fre d8
\fsol g4, \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:30: error: octave marks must precede duration \fre d'4 \fre d8 \fsol g4 , \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:32: warning: Unattached TextScriptEvent \fre d'4 \fre d8 \fsol g4, \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:40: warning: Unattached TextScriptEvent \fre d'4 \fre d8 \fsol g4, \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:48: warning: Unattached TextScriptEvent \fre d'4 \fre d8 \fsol g4, \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:108:3: warning: Unattached TextScriptEvent
\fsi b2.
Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Converting to `Aint-Necessarily-So.pdf'... fatal error: failed files: "C:\Users\TOMMY_~1\AppData\Local\Temp\frescobaldi-ro92knuj\tmpi_my1xgx\Aint-Necessarily-So.ly" Exited with return code 1.
well, as you suggested it works... no more errors. I did remove the comma and re-write a bit different my code as:
fsi = #(define-music-function () ()
#{ \pad _\markup \center-column \override #'(size . 0.7) { \woodwind-diagram #'flute #'((cc . (oneF two three four)) (lh . ()) (rh . ())) } #})
pad = \once \override TextScript.padding = #4
\relative c'' { \key g \minor \numericTimeSignature \time 4/4 \fdo g8 \fre d4 \fre d8 \fsol g4 \fdo c4 \fdo c4 \fsol g4 \fsi b2. }
I tried to eliminate warnings as it suggested above but still have them:
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:107:46: warning: Unattached TextScriptEvent \fre d4 \fre d8 \fsol g4 \fdo c4 \fdo c4 \fsol g4
C:/Users/TOMMY_~1/AppData/Local/Temp/frescobaldi-ro92knuj/tmpi_my1xgx/Aint-Necessarily-So.ly:108:3: warning: Unattached TextScriptEvent
\fsi b2.
Is there a way to eliminate them?
Thanks, Tommy Tsalisher