Open talker93 opened 6 days ago
可以将hello.ly和1.ly发送给我吗?
方便发送一份服务器上运行的全部代码吗,我怀疑与repo有些不同。
我在本地使用Lilypond读取.ly文件渲染PDF乐谱时同样会报错,但文件能够正常生成,完全不影响使用。
我在本地使用Lilypond读取.ly文件渲染PDF乐谱时同样会报错,但文件能够正常生成,完全不影响使用。
Processing /Users/likelian/Desktop/Untitled.ly' Parsing... /Users/likelian/Desktop/Untitled.ly:20:23: error: unknown escaped string:
\melody_None'
melody = \partcombine
\melody_None \melody_None
/Users/likelian/Desktop/Untitled.ly:20:23: error: wrong type for argument 2. Expecting music, found "melody_None"
melody = \partcombine
\melody_None \melody_None
/Users/likelian/Desktop/Untitled.ly:20:36: error: unknown escaped string: \melody_None' melody = \partcombine \melody_None \melody_None /Users/likelian/Desktop/Untitled.ly:20:36: error: wrong type for argument 3. Expecting music, found "melody_None" melody = \partcombine \melody_None \melody_None Interpreting music... Interpreting music... error: Invalid version string "2.20.0-1" Interpreting music... Preprocessing graphical objects... Interpreting music... MIDI output to
Untitled.midi'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to /var/folders/l6/zl66hhls0nn1nr06pf98lg2w0000gp/T//lilypond-uL9zp0'... Converting to
Untitled.pdf'...
Deleting `/var/folders/l6/zl66hhls0nn1nr06pf98lg2w0000gp/T//lilypond-uL9zp0'...
fatal error: failed files: "/Users/likelian/Desktop/Untitled.ly"
\header{ title="Ode to Joy " composer=" Ludwig van Beethoven" tagline = \markup { \column { "This is footer" " " "Created by MusicTXT and LilyPond" } } } melody_a= {\clef treble \key c \major \time 4/4 \tempo 4=140 c'4 d'4 e'8f'8 g'4 c'4 d'4 e'8f'8 g'4 }
melody = \partcombine \melody_None \melody_None melody = \partcombine \melody \melody_a
chord= { \clef bass \key c \major
\chordmode { c,1 d,1}} \score { \new PianoStaff << \chords { c,1 d,1} \new Staff = "up" \melody \addlyrics { 一} \new Staff = "down" \chord
\layout { } }
\score { \new PianoStaff \with {midiInstrument = #"acoustic grand"} << \new Staff = "up" \melody \new Staff = "down" \chord
\midi { } } \version "2.20.0-1" % necessary for upgrading to future LilyPond versions.
\header{ title="Ode to Joy " composer=" Ludwig van Beethoven" tagline = \markup { \column { "This is footer" " " "Created by MusicTXT and LilyPond" } } } melody_a= {\clef treble \key c \major \time 4/4 \tempo 4=140 c'4 d'4 e'8f'8 g'4 c'4 d'4 e'8f'8 g'4 }
melody = \partcombine \melody_None \melody_None melody = \partcombine \melody \melody_a
chord= { \clef bass \key c \major
\chordmode { c,1 d,1}} \score { \new PianoStaff << \chords { c,1 d,1} \new Staff = "up" \melody \addlyrics { 一} \new Staff = "down" \chord
\layout { } }
\score { \new PianoStaff \with {midiInstrument = #"acoustic grand"} << \new Staff = "up" \melody \new Staff = "down" \chord
\midi { } } \version "2.20.0-1" % necessary for upgrading to future LilyPond versions.
运行MusicTXT.py后得到的.ly文件内容。(github不支持上传.ly文件)
测试发现http://161.35.237.165/ 已经能够正常渲染pdf,但浏览器没有显示对应的乐谱pdf,而是固定显示教程文档。可以通过Download获取pdf文件(浏览器提示不安全连接,需要手动允许下载)。
加了个域名,整了个ssl认证,现在应该可以了 https://www.shanjiang.space/
我给http://musictxt.org/又续费了,怎么redirect过来?
你看下你的域名管理的后台,其他不用改,只需要把A记录改成@ 161.35.237.165
现在访问www.musictxt.org得到Bad Request (400)。之前没有遇到过同样的问题。
musictxt.py从txt到ly的转换,格式有错误。 克镰看下code有没有什么问题。
以下是服务器报错: