Extension talk:Score

Please create a Phabricator task for your topic; this page is not regularily watched for new topics.

Thanks

Just wanted to thank you for working on this. I appreciate it and I know the rest of the MediaWiki community will, too. Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator 13:27, 16 December 2011 (UTC)

Thank you

This was the best Christmas present this year! Thank you very much for your efforts. It is amazing how this projekt took up speed. If you need any support that does not require skills too sophisticated - please leave me a note. I'd love to do testing or whatever is necessary.

Thank you again! --Hei ber 23:53, 30 December 2011 (UTC)

You're welcome, and thanks for your offer to help. Apparently, beta testing is to be done on the live wikis once the extension is ready for deployment. But feel free to play around with it on your private MediaWiki installation, and do not hesitate to contact me if you have any feature requests. GrafZahl (talk) 01:11, 31 December 2011 (UTC)
Do you have a Labs account? That might be a good way to test the extension... Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator 19:19, 30 January 2012 (UTC)
I do not. Thanks for the heads-up. I've read some of the docs and I learned Labs is totally awesome. Now I'll have to go ask someone what one can actually do with it… GrafZahl (talk) 15:01, 1 February 2012 (UTC)
  1. wikimedia-labs and https://lists.wikimedia.org/mailman/listinfo/labs-l stand ready and waiting to discuss things-to-be-done-with-Labs!  :-) Best of luck. Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator 15:05, 1 February 2012 (UTC)
Thank you (I saw your reply only after I submitted my previous post). GrafZahl (talk) 16:04, 1 February 2012 (UTC)
After IRC discussion on #wikimedia-labs with demon and petan, it turns out that Labs is not yet ready for extension testing. So, for now, I'll stick to the "old ways". But I'll keep an eye on Labs. GrafZahl (talk) 16:02, 1 February 2012 (UTC)

SVG output?

Just curious, any chance that the extension may render as SVG instead of PNG? DarTar (talk) 18:24, 29 February 2012 (UTC)

That would be really good! Helder 18:51, 29 February 2012 (UTC)
Native output formats from LilyPond (the central piece of software behind Extension:Score) are PDF, PS, and PNG. With the right tools, it should be possible to convert the PS output to SVG. Pstoedit might do the trick, but I'll have to look into this further once the other planned features are in place. GrafZahl (talk) 14:56, 6 March 2012 (UTC)
lilypond -dbackend=svg whatever.ly Grin (talk) 22:08, 23 April 2013 (UTC)
Filed as bugzilla:47578 AKlapper (WMF) (talk) 10:19, 24 April 2013 (UTC)
Did a quick test at https://bugzilla.wikimedia.org/show_bug.cgi?id=47578#c6 -- please test the prelim patch in Gerrit. The SVG files are coming out corrupted on my MacBook at least. brion (talk) 19:57, 4 May 2013 (UTC)

Need help?

GrafZahl, just checking in on whether you might need some help with this extension -- a few volunteers might have some time available. Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator (talk) 15:56, 12 April 2012 (UTC)

Hello Sumana, after nearly a year I now have a little time for the Score extension again. I pulled the gerrit master of Score into my own repository and already made some small changes, the latest of which are currently at https://github.com/TheCount/score/tree/develop. I could use some help with the following issues:
  1. How do I get my changes back into gerrit/master? Should I simply use the signup button on Developer access for new developers, or should I somehow convert my old SVN developer access, and if so, how?
  2. Regarding bugzilla:43388, I could use some help getting started with Extension:TimedMediaHandler. There does not appear to be any developer documentation, such as how to generate player HTML given an Ogg URL.
Thanks! GrafZahl (talk) 01:55, 26 December 2012 (UTC)
GrafZahl, I'm sorry, I did not see this message until just now!
1. I need some information to turn your SVN access into Git/Gerrit access:
  • Preferred Git username - Alphanumeric; will also be your Git commit author name, so your full name or wiki username would be reasonable. This will be permanent, so choose wisely, and leave out things like organization names or other current affiliations.
  • Your svn account name if you have one, or if you didn't, your preferred shell username. Shell account names should start with a lower-case letter, followed by 1 to 16 numbers, lower case ASCII letters or - (hyphen-minus) characters. (regex: [a-z_][-a-z0-9]*) Shell account names can be the same as your username, if your username fits these guidelines.
  • Did you previously have a svn.wikimedia.org account? (Yes/No)
  • Your preferred email address This must be an email address. (not [[special:emailuser]]!) Your email address will be easily accessible to (and not obfuscated) all other labs users.
2. I'll bring the attention of the TMH developers to your question. Thanks! Sharihareswara (WMF) (talk) 20:23, 3 January 2013 (UTC)
  • Preferred Git username: GrafZahl
  • SVN account name: grafzahl
  • Did you previously have a svn.wikimedia.org account? Yes (with write-access to extensions only)
  • Preferred email address: Graf.Zahl@gmx.net GrafZahl (talk) 14:01, 27 January 2013 (UTC)
Now you can create an account yourself - see Developer access. Qgil (talk) 13:05, 4 February 2013 (UTC)
To setup Extension:TimedMediaHandler you can check the README in the TimedMediaHandler git repository, you can also use https://github.com/bit/mediawiki_vm to create a VirtualBox image with all components installed. JanGerber (talk) 09:06, 4 January 2013 (UTC)
GrafZahl, are you aiming to work on https://bugzilla.wikimedia.org/show_bug.cgi?id=43388 ? Sharihareswara (WMF) (talk) 19:17, 4 January 2013 (UTC)
Yep, that's the intention. GrafZahl (talk) 13:57, 27 January 2013 (UTC)

Retina/high-density display support needed

I notice that this renders to raster PNG files at traditional 1.0x screen resolution.

There's more and more devices with higher-res screens coming to market (iPhone, iPad, many Android phones, laptops from Apple, Google, and soon Toshiba) and it'd be awesome if score output looked clean on those displays.

Since SVGs aren't available yet and we probably don't want to embed PDFs :)... the simplest solution would be to render PNGs at 1.0 (current), 1.5, and 2.0 scales, and use the 'srcset' attribute to list the 1.5x and 2.0x variants. This will be picked up at runtime by our JavaScript code (or, in the future, interpreted directly by the browser) to load up the larger versions when viewed on an appropriate screen. brion (talk) 22:23, 22 April 2013 (UTC)

Filed this as bugzilla:47523 brion (talk) 22:32, 22 April 2013 (UTC)

Add a way to hide the vorbis player

On wikisource we need to reproduce score as it, when a page is full of score the vorbis player should be hidden, I'm unsure what will the most practical way in our, show the vorbis player when moving mouse over a scrore or show the vorbis player when clicking on a score. Phe (talk) 23:09, 22 April 2013 (UTC)

The Vorbis player is hidden unless it's explicitly specified that it should be rendered. However it might be nice to have a rendering option where it's presented on mouseover or click so it doesn't get in the way of a Wikisource document. This needs a bit more UI thinking before it can be implemented, and should take touchscreens into account (where mouseover is not a great affordance). Eloquence (talk) 23:33, 23 April 2013 (UTC)

Numbered Musical Notation/Jianpu

It would be awesome if this extension support w:numbered musical notation, which are widely used in Asia, although it's never been popular in the West. There's a Lilypond hack for it:

If Lilypond itself does not support it, it first needs to be supported in Lilypond. You can file a request for Lilypond developers at http://code.google.com/p/lilypond/issues/list AKlapper (WMF) (talk) 10:18, 24 April 2013 (UTC)

Limit

It seems there are certain limit to this extension. I encountered many compile error when I have a long sheet of music. For example "a/4c'/4e'/2c'aecA|b^geB^GE|e'c'aecA|e4E4|" would work fine, but when I put "a/4c'/4e'/2c'aecA|b^geB^GE|e'c'aecA|e4E4|a/4c'/4e'/2c'aecA|b^geB^GE|e'c'aecA|e4E4|" (double), it would encounter an error

Unable to compile LilyPond input file:

Processing `.../file.ly'
Parsing...
Interpreting music... [8]
Preprocessing graphical objects...
Interpreting music... 
MIDI output to `file.midi'...
Finding the ideal number of pages...
Fitting music on ... page...
Drawing systems...
Layout output to `file.ps'...
Converting to PNG...GS exited with status: 9
exited with status: ...

Bennylin (talk) 20:46, 23 April 2013 (UTC)

Try tomorrow, it'll be fixed. Grin (talk) 22:01, 23 April 2013 (UTC)

Unable to convert ABC file to LilyPond format:

+ /usr/bin/abc2ly -s -o file.ly file.abc
/usr/bin/abc2ly from LilyPond 2.22.0
Parsing `file.abc'...
Line ... Warning: inserting repeat to beginning of notes.
file.abc: 2: Huh?  Don't understand
works fine, and

Unable to convert ABC file to LilyPond format:

+ /usr/bin/abc2ly -s -o file.ly file.abc
/usr/bin/abc2ly from LilyPond 2.22.0
Parsing `file.abc'...
Line ... Warning: inserting repeat to beginning of notes.
file.abc: 2: Huh?  Don't understand
works fine, but combined, they didn't work

Unable to convert ABC file to LilyPond format:

+ /usr/bin/abc2ly -s -o file.ly file.abc
/usr/bin/abc2ly from LilyPond 2.22.0
Parsing `file.abc'...
Line ... Warning: inserting repeat to beginning of notes.
file.abc: 2: Huh?  Don't understand
Bennylin (talk) 11:33, 25 April 2013 (UTC)
Similar behaviour at en:The Vicar of Bray (song) where the song's eight lines with lyrics had to be separated from the refrain. Michael Bednarek (talk) 02:44, 1 May 2013 (UTC)
I've got the same problem at s:en:User:Beeswaxcandle/Sandbox5, s:en:Page:A Dictionary of Music and Musicians vol 1.djvu/162, and s:en:Page:A Dictionary of Music and Musicians vol 1.djvu/100 to quote just three. It seems that anything slightly complex is problematic even when using the raw mode. Beeswaxcandle (talk) 04:35, 6 May 2013 (UTC)
I have encountered a series of possible similar errors but they only appear to happen on Wikimedia wikis.
s:en:Page:National Anthems of the Allies.djvu/16 causes an error much like that shown above. However, on WikiTranslate, the same code functions properly. I have no idea why. (NB: The WikiTranslate link lins to someone else's sandbox; it may change at any time and I have no control over that.) AdamBMorgan (talk) 02:27, 13 May 2013 (UTC)

Support of note names in other languages?

LilyPond supports notes names in many languages and specialist notations. The file "italiano.ly" is particularly useful because many countries use solmization systems and not the alphabetic system which seems to be the only one supported in this extension (see en:Key signature names and translations). Could you add the support of LilyPond language files please? Thanks in advance. Ayack (talk) 08:49, 24 April 2013 (UTC)

I'd recommend to file enhancement requests in Bugzilla: https://bugzilla.wikimedia.org/enter_bug.cgi?product=MediaWiki%20extensions&component=Score . See mw:How_to_report_a_bug for more info. AKlapper (WMF) (talk) 10:21, 24 April 2013 (UTC)
Ok, thanks. Filed as bugzilla:47604. Ayack (talk) 12:11, 24 April 2013 (UTC)
Is there any advance on this? Theklan (talk) 22:17, 1 December 2013 (UTC)
No, as there are no recent comments in the bug report, however patches would speed this up. AKlapper (WMF) (talk) 01:19, 2 December 2013 (UTC)

.mid instead .midi

It seems that MIDI output is stored with an extension of .midi. I suggest to use the much more widely used extension .mid instead. Michael Bednarek (talk) 13:36, 29 April 2013 (UTC)

Also, newer versions of Lilypond seem to generate .mid files. That was the reason Score didn't work for me in the first place. I had to change line 580 to
$factoryMidi = "$factoryDirectory/file.mid";
Now it works like a charm :) Mglaser (talk) 21:49, 6 February 2014 (UTC)

how to set size

<score> #(set-global-staff-size 14) { \clef bass c8 c c c c c c c } </score>

This works on my lilypond installation but not here. Is variable-setting a security risk? If yes, is there a way to set the overall size? P.S. Hate to ask as the extension is marvellous. KlausFoehl (talk) 18:54, 29 April 2013 (UTC)

Looks like safe mode disables that. From the manual:
The -dsafe option works by evaluating in-line Scheme expressions in a special safe module. This safe module is derived from GUILE ‘safe-r5rs’ module, but adds a number of functions of the LilyPond API. These functions are listed in ‘scm/safe-lily.scm’.


In addition, safe mode disallows \include directives and disables the use of backslashes in TeX strings.


In safe mode, it is not possible to import LilyPond variables into Scheme.
Bawolff (talk) 10:03, 11 May 2013 (UTC)
Is safe mode really necessary? It would be great to use \include directives and variables. Is there no other way to make this possible? Leonach (talk) 15:09, 15 August 2013 (UTC)
For the include part, I'm thinking that maybe including files can be done as a pre-processing step on the php side, to get around the limitation.
For the other stuff, I don't know enough about lilypond internals to say. We (the score extension) probably don't want to mess with their security stuff - as they know the ins and outs of lilypond much better than we do. Bawolff (talk) 15:56, 28 October 2013 (UTC)

-danti-alias-factor=2

Adding the option -danti-alias-factor seems to improve the look of the output, at the cost of doubling the time it takes to render (in a very rough experiment). Not sure if its worth it. Bawolff (talk) 09:38, 11 May 2013 (UTC)

It seems to me that on this wikimedia server the antialiasing setting has been enhanced. I Just installed Score on my MW 23.1, and the output of the sample from this site ("shave and a haircut") looks much more rough, pixeled edges both on music and lyrics.
But where do you add this option? Within the score.body.php, modifying the
$cmd = wfEscapeShellArg( $wgScoreLilyPond )
. ' ' . wfEscapeShellArg( '-dsafe=#t' )
section? But then it get's overwritten every time the extension is updated?
Thanks a lot, Hans Oleander (talk) 13:58, 7 August 2014 (UTC)

Can notes change colour when they play?

Thank you very much for the extension. Can notes change colour when they play so kids can learn them easy way? I know it's not easy to make, but still I ask :) Maybe the notes can be added to the player itself? I don't like the way the black boxes look. They disappear or become blue boxes on the mobile version of the page :( Natkabrown (talk) 09:23, 1 June 2013 (UTC)

Something like that would be cool, but I don't think it would be easy... Helder 12:42, 8 June 2013 (UTC)
Something like this could probably be done with Midi.js. MarkAHershberger(talk) 15:02, 12 June 2013 (UTC)

Graphical note entry?

I am working on a GUI for LilyPond. It is still in its early stages, and it will be a long way before it matches any of the power that LilyPond has, or that other GUIs offer right now, for that matter.

It would be nice to have focus and users and I am wondering if it could be useful for MediaWiki or WikiPedia or what would need to be done to make it so.

Any feedback is much appreciated! Have a look at lilypond.org/schikkers-list or go straight to the LilyPond Schikkers Demo JCN (talk) 09:49, 15 June 2013 (UTC)

Please post something about your project on mail:wikitech-l. I'm sure lots of people there would be interested. MarkAHershberger(talk) 18:21, 15 June 2013 (UTC)
Thank you. See http://lists.wikimedia.org/pipermail/wikitech-l/2013-June/069973.html and https://bugzilla.wikimedia.org/show_bug.cgi?id=47528 JCN (talk) 18:57, 16 June 2013 (UTC)

vorbis="1" not working

Thank you for the wonderful extension. Everything works except for vorbis="1". I've tried both OggHandler and TimedMediaHandler, to no avail, i.e. they work when I use File:XXX.ogg, but no Ogg/Vorbis player is embedded in the HTML after the score image when I issue vorbis="1" parameter. I have $wgScoreTimidity set to '/usr/bin/timidity' and timidity is there and working. midi="1" attribute is working as well (it does generate a link to a midi file). What else can be wrong? I would appreciate your assistance.

Kind regards, Pavel (dallapiccola.ru). 178.184.113.230 06:01, 9 August 2013 (UTC)

New installation on Ubuntu server not working

Hi, I just installed Score on http://wiki.x2592.com but it's not rendering and returns an error:

Unable to compile LilyPond input file:
Processing `.../file.ly'
Parsing...
Interpreting music... 
Preprocessing graphical objects...
(process:5256): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (33)

(process:5256): Pango-WARNING **: /usr/lib/x86_64-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so: 
failed to map segment from shared object: Cannot allocate memory

(process:5256): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'

(process:5256): Pango-CRITICAL **: pango_fc_font_lock_face: assertion `PANGO_IS_FC_FONT (font)' failed

exited with status: 139

After installing your extension in MediaWiki, I executed 'apt-get install lilypond' on the server, plus 'apt-get install guile-1.8-doc texlive-generic-recommended texinfo-doc-nonfree perl-tk' (which were recommended during the apt-get install process). But I didn't do any additional configuration.

Could you give me any advice as to what's wrong?

TIA if so, and thanks for your work on this great extension. :-) X2592 (talk) 14:53, 31 August 2013 (UTC)

You are running out of memory.
Does LilyPond work from the command line? MarkAHershberger(talk) 11:02, 1 September 2013 (UTC)
Besides the out of memory problem, you are also running into an assertion about fonts. Searching for the error doesn't give any clear solution, but maybe installing some TeX fonts would help? MarkAHershberger(talk) 11:10, 1 September 2013 (UTC)
Hello Mark, thank you for the advice. Removing the memory limit seems to solve the problem. I did that by inserting this line in LocalSettings.php:
$wgMaxShellMemory = 0;&lt;/pre&gt;
For the fonts, I executed 'apt-get install texlive-full', with all the fonts that included, but that didn't change the Pango warning. 
I also tried all the solutions suggested in the following two pages: 
http://stackoverflow.com/questions/2568408/pango-warning-failed-to-choose-a-font-expect-ugly-output
http://vietunicode.sourceforge.net/howto/fontlinux.html
But it still didn't change the fonts complaint.
Anyway, I'll just ride with the available fonts and move on. Thanks again for the help. [[User:X2592|X2592]] ([[User talk:X2592|talk]]) 17:04, 1 September 2013 (UTC)
:::You should try to find a usable memory limit.  If you leave it like this, someone could easily take your server too its knees. <span style="color:#d30000">☠</span>[[User:MarkAHershberger|MarkAHershberger]]<span style="color:#d30000">☢</span>([[User_talk:MarkAHershberger|talk]])<span style="color:#d30000">☣</span> 18:10, 1 September 2013 (UTC)

== \include "gregorian.ly" ==

\include "gregorian.ly" is not possible since it includes a file. I would very much like to use the Score extension for gregorian chant, and cutting and pasting gregorian.ly does not work.

This is a request for a feature which would be extremely useful, especially at Wikisource! [[User:Rickard Lind|Rickard Lind]] ([[User talk:Rickard Lind|talk]]) 18:53, 15 September 2013 (UTC)
:We probably need to go this way -- https://code.google.com/p/lilypond/issues/detail?id=903 [[User:JCN|JCN]] ([[User talk:JCN|talk]]) 19:06, 15 September 2013 (UTC)
::Have you looked at the [https://bugzilla.wikimedia.org/buglist.cgi?list_id=233514&resolution=---&resolution=LATER&resolution=DUPLICATE&query_format=advanced&component=Score&product=MediaWiki&product=MediaWiki%20extensions&product=Wikimedia bugs filed against Score] to see whether this is a known issue or to add this one? <span style="color:#d30000">☠</span>[[User:MarkAHershberger|MarkAHershberger]]<span style="color:#d30000">☢</span>([[User_talk:MarkAHershberger|talk]])<span style="color:#d30000">☣</span> 22:49, 15 September 2013 (UTC)
:::You are right, it is mentioned in the comments of [https://bugzilla.wikimedia.org/show_bug.cgi?id=47604 Bug 47604 - Score should support note names in other languages]. [[User:Rickard Lind|Rickard Lind]] ([[User talk:Rickard Lind|talk]]) 09:32, 16 September 2013 (UTC)
::If the issue was patched in LilyPond in 2010, how can we still have this problem? [[User:Ayack|Ayack]] ([[User talk:Ayack|talk]]) 15:38, 28 March 2014 (UTC)

== Hindustani Traditional Musical Notation as like "Extention:Score" ==

Hi , I am from Bengali Wikisource Team (bn.wikisource.org). We have lots of PD Hindustani Traditional Musical Notation (Swaralipi) with songs. We need to convert there. So we need  Hindustani Traditional Musical Notation as like "[[Extension:Score]]". I would like to help any kind of work except coding. I have uploaded sample file of notation in Bengali language ( [[:File:Swarabitan vol. 1.pdf]] works by [//en.wikipedia.org/wiki/Rabindranath&#x20;Tagore en:Rabindranath Tagore].[[User:Jayantanth|Jayantanth]] ([[User talk:Jayantanth|talk]]) 22:26, 21 October 2013 (UTC)
:You should [[BUGREPORT|file a bug]] for this.  While you can't help with coding, it would really, really help if you could find a developer who is familiar with this notation and has a vested interest in it.  Does anyone on the Bengali Wikisource Team have the ability or know someone who could help? <span style="color:#d30000">☠</span>[[User:MarkAHershberger|MarkAHershberger]]<span style="color:#d30000">☢</span>([[User_talk:MarkAHershberger|talk]])<span style="color:#d30000">☣</span> 19:01, 23 October 2013 (UTC)
::{{bug|56087}} submitted. [[User:Jayantanth|Jayantanth]] ([[User talk:Jayantanth|talk]]) 09:26, 24 October 2013 (UTC)
::I don't see a bug here — for once.
::Maybe people would be more motivated for developing MediaWiki if Wikimedia called their work with the right words. [[User:Nnemo|Nnemo]] ([[User talk:Nnemo|talk]]) 06:27, 26 January 2014 (UTC)

== Error after installation ==

after installing the extension on my mediawiki score, got this error:


Unable to compile LilyPond input file:<br />
Processing `C:/temp/MWLP.7baa9712660fef5f9bc1d511f1a31b44/file.ly'<br />
Parsing...<br />

C:/temp/MWLP.7baa9712660fef5f9bc1d511f1a31b44/file.ly:13:0: error: syntax error, unexpected STRING<br />
... … -dmidi-extension=file.ly<br />
C:/temp/MWLP.7baa9712660fef5f9bc1d511f1a31b44/file.ly:13:32: error: syntax error, unexpected '.'<br />
... … -dmidi-extension=file.ly<br />
C:/temp/MWLP.7baa9712660fef5f9bc1d511f1a31b44/file.ly:25:24: error: syntax error, unexpected '}' }<br />
Interpreting music...<br />
Preprocessing graphical objects...<br />
Finding the ideal number of pages...<br />
Fitting music on 1 page...<br />
Drawing systems...<br />
Layout output to `file.eps'...<br />
Converting to PNG...<br />
Layout output to `file-1.eps'...<br />
Writing file-systems.texi...<br />
Writing file-systems.tex...<br />
Writing file-systems.count...<br />
fatal error: failed files: ".../file.ly"<br />

this mediawiki installed IIS 7.5 windows 2008 server r2 with Lilypond 2.16.2.1

any idea how to solve this is appreciated

Tanks [[User:Ideiafix|Ideiafix]] ([[User talk:Ideiafix|talk]]) 17:21, 10 December 2013 (UTC)

== Unable to compile LilyPond input file ==

:Hi, when I test the example '''<nowiki><score>\relative c' { f d f a d f e d cis a cis e a g f e }</score></nowiki>''' , got this error:
:<syntaxhighlight lang='text'>Unable to compile LilyPond input file:
Processing `.../file.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Interpreting music...
MIDI output to `file.midi'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `file.ps'...
Converting to PNG...Fontmap entry for Fontmap.local ends prematurely!  Giving up.
fatal error: GS exited with status: 256
exited with status: 1
I can't solve it. Could you give me some help?
My wiki need to use this great extension. JoesSR (talk) 20:27, 30 January 2014 (UTC)
Hi JoesSR,
I am also facing same issue. Have you relosved this issue? 206.80.1.253 05:03, 29 April 2015 (UTC)
Aqui parese-me tudo correto, porém tenho o erro:
Código:
<score vorbis="1" lang="lilypond">\relative c' { c d e f g a b} </score>
Resultado aqui:
Unable to compile LilyPond input file: warning: cannot find file: `.../file.ly' error: failed files: ".../file.ly" exited with status: 1
No média wiki:
\relative c' { c d e f g a b}

Algém sabe qual é o problema?
email: mazera2@gmail.com

186.225.224.169 15:21, 30 May 2015 (UTC)
Had the same issue. I think it's due to a bug with Lilypond 2.18 (the one still advertised at lilypond.org) but that has been fixed on a more recent version. In the end the commands I used to install the latest Lilypond were:
curl -o lilypond.sh http://download.linuxaudio.org/lilypond/binaries/linux-64/lilypond-2.19.52-1.linux-64.sh
sh lilypond.sh
Sophivorus (talk) 23:56, 14 December 2016 (UTC)
I have a very similar problem, I am using Ubuntu 18.10 and Lilypond 2.19.82
».../file.ly« wird verarbeitet
Analysieren...
Interpretation der Musik...
Vorverarbeitung der grafischen Elemente...Fontconfig warning: ignoring C.UTF-8: not a valid language tag
Interpretation der Musik...
MIDI-Ausgabe nach »file.midi«...
Ideale Seitenanzahl wird gefunden...
Musik wird auf eine Seite angepasst...
Systeme erstellen...
Layout nach »/tmp/lilypond-oexcsw« ausgeben...
Konvertierung nach PNG...
Warnung: »(gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dNOPAUSE -dBATCH -sDEVICE=png16m -dAutoRotatePages=/None -sOutputFile=file.png -r101 -f/tmp/lilypond-oexcsw)« gescheitert (256)
schwerer Fehler: gescheiterte Dateien: ".../file.ly"
exited with status: 1
Has anyone an idea? Thanks for help Manuela (talk) 15:44, 4 January 2019 (UTC)

How can I find out which version of LilyPond is installed

How can I find out which version of LilyPond is installed on some wiki with this extension?

more specifically, on wikimedia wikis?

peace. קיפודנחש (talk) 22:42, 20 February 2014 (UTC)

Usually the [[Special:Version]] has that information. If what you need is missing, you should file a bug. MarkAHershberger(talk) 15:24, 25 February 2014 (UTC)
Special:Version shows the version of the Extension:Score but not of LilyPond (whose newest version is 2.18.1). Helder.wiki 19:29, 25 February 2014 (UTC)
thanks, but i have no reason to think the latest version is installed (and indeed, i vaguely remember seeing evidence that it isn't).
i do not know if not having the version listed on Special:Version is a bug - it may well be: many external bins versions, even those not used by core are listed at the top (php, mysql, elasticsearch, lua), but not all: httpd server (usually apache, i guess), imagemagic, and of course, lilypond versions are not listed.
it would be enough for me to know which version is used on wikimedia servers - surely *someone* should know that, no?
peace. קיפודנחש (talk) 23:09, 25 February 2014 (UTC)
You could find the version that WMF is running by poking around on http://noc.wikimedia.org/
I think they're running Ubuntu LTS which would be 12.04. I think that means they're using 2.14.2. MarkAHershberger(talk) 16:16, 27 February 2014 (UTC)

Pdf

Hello, when downloading a page as pdf containing score, only the source code will be printed. Is it planned in the future to render into pdf?--Sinuhe20 (talk) 21:15, 4 April 2014 (UTC)

This is tracked on bugzilla:63589. Helder.wiki 20:33, 8 April 2014 (UTC)

Need installation advice

I was going to install this, but I simply can't figure out how to do it.

  • How do I install LilyPond on my web server? I use a web hotel and a common FTP program, would that work? Would I in that case download the most recent version from http://lilypond.org/download.html, or would you advice that I download another version?
  • Do I have to activate file upload on my wiki?
  • The Extension:OggHandler is obsolete. Do I use it anyway? Solvej (talk) 16:59, 16 May 2014 (UTC)

Troubleshooting Help [SOLVED]

I installed a fresh version of mediawiki 1.23.5 and the Score Extension from Score-REL1_23-61b056b.tar.gz, mwEmbedSupport, and TimedMediaHandler. lilypond exists on my system. I added these lines to my LocalSettings.php:

umask(0022); // suphp per https://www.mediawiki.org/wiki/Manual_talk:Configuring_file_uploads#Folder_permissions_.26_SUPHP
 $wgMaxShellMemory = 0;
 require_once("$IP/extensions/Score/Score.php");
 $wgScoreLilyPond = '/usr/local/bin/lilypond'; /* required */
 $wgScoreAbc2Ly = '/usr/local/bin/abc2ly'; /* if you want ABC to LilyPond conversion */
 $wgScoreTimidity = '/usr/bin/timidity'; /* if you want MIDI to Vorbis conversion */
 $wgScoreTrim = true; /* Set to false if you don't want score trimming */
 // TimedMediaHandler is dependent on mwEmbedSupport
 require_once( "$IP/extensions/MwEmbedSupport/MwEmbedSupport.php" );
 // TimedMediaHandler
 require_once( "$IP/extensions/TimedMediaHandler/TimedMediaHandler.php" );

I did not create a lilypond directly inside the Upload Directory because I wanted the Score extension to attempt to create it for me with the rights available to it (per the README). I created a new page and added this:

LilyPond Rendering:
 
  <score>\relative c'' { \time 4/4 \key c \major 
  c4 g8 g a4 g r b^> c^> r \bar "|." } 
  \addlyrics { Shave and a hair -- cut: two bits. }
  </score>

I save the page, and it doesn't have the lilypond image, only the error No MIDI file generated despite being requested. If you are working in raw LilyPond mode, make sure to provide a proper \midi block. I can find both file.png and file.midi in the root htdocs folder: https://wiki.jeffharris.us/file.png which doesn't appear to be trimmed, and my images folder is empty.

I turned on a debug log and I see this:

MessageCache::load: Loading en... global cache is empty, loading from database
 EditPage::importFormData: Passed token check.
 User::getBlockedStatus: checking...
 timestamp: 20141015190143, edittime: 20141015190143
 EditPage::internalAttemptSave: getting section ''
 Unstubbing $wgParser on call of $wgParser::preSaveTransform from WikitextContent::preSaveTransform
 Parser: using preprocessor: Preprocessor_DOM
 Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
 FSFileBackend::getFileListInternal() given directory does not exist: '/var/www/us/jeffharris/wiki/htdocs/images/lilypond/d/5/d5cbwb05lck0wyiyztgm90ot8ty9swf'
 Score::createDirectory: called wfMkdirParents(/tmp/MWLP.b937de0e612e5c16f88cd2d14a3f0540)
 wfShellExec: /bin/bash '/var/www/us/jeffharris/wiki/htdocs/includes/limit.sh' ''\''/usr/local/bin/lilypond'\'' --version 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=0; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
 wfShellExec: /bin/bash '/var/www/us/jeffharris/wiki/htdocs/includes/limit.sh' 'LILYPOND_GC_YIELD='\''25'\'' '\''/usr/local/bin/lilypond'\'' '\''-dsafe=#t'\'' -dbackend=ps --png --header=texidoc '\''/tmp/MWLP.b937de0e612e5c16f88cd2d14a3f0540/file.ly'\'' 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=0; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
 DatabaseBase::query: Writes done: INSERT  INTO `text` (old_id,old_text,old_flags) VALUES (NULL,'LilyPond Rendering:\n\n<score>\\relative c\'\' { \\time 4/4 \\key c \\major \nc4 g8 g a4 g r b^> c^> r \\bar \"|.\" } \n\\addlyrics { Shave and a hair -- cut: Two bits. }</score>','utf-8')
 WikiPage::doEditUpdates: No vary-revision, using prepared edit...
 Saved in parser cache with key my_wiki:pcache:idhash:2-0!*!*!*!*!*!* and timestamp 20141015193403 and revision id 3
 BacklinkCache::queryLinks: got results from DB
 [cookie] setcookie: "my_wikiPostEditRevision3", "1", "1413402847", "/", "", "1", ""
 OutputPage::sendCacheControl: private caching;  **
 LoadBalancer::reuseConnection: this connection was not opened as a foreign connection
 Title::getRestrictionTypes: applicable restrictions to [[Shave and a Haircut]] are {edit,move}
 BacklinkCache::partition: got from full result cache
 BacklinkCache::queryLinks: got results from DB
 BacklinkCache::partition: got from full result cache
 Request ended normally

Where do I begin troubleshooting this? Tahongawaka (talk) 20:05, 15 October 2014 (UTC)

Apparently, this may be related to suPHP. If not, I still have the issue solved. For some reason, the output files are going into my root htdocs file instead of inside the $factoryDirectory directory. Adding the --output option to the LilyPond call does the trick. I modified line 587 of Score.body.php
$cmd = wfEscapeShellArg( $wgScoreLilyPond )
. ' ' . wfEscapeShellArg( '-dsafe=#t' )
. ' -dbackend=ps --png --header=texidoc --output=' . wfEscapeShellArg($factoryDirectory) . ' '
. wfEscapeShellArg( $factoryLy )
. ' 2>&1';
Tahongawaka (talk) 00:43, 17 October 2014 (UTC)
Apparently, this may be related to suPHP. If not, I still have the issue solved. For some reason, the output files are going into my root htdocs file instead of inside the $factoryDirectory directory. Adding the --output option to the LilyPond call does the trick. I modified line 587 of Score.body.php
$cmd = wfEscapeShellArg( $wgScoreLilyPond )
. ' ' . wfEscapeShellArg( '-dsafe=#t' )
. ' -dbackend=ps --png --header=texidoc --output=' . wfEscapeShellArg($factoryDirectory) . ' '
. wfEscapeShellArg( $factoryLy )
. ' 2>&1';
Tahongawaka (talk) 00:43, 17 October 2014 (UTC)
Sorry for the multiple posts, my browser locked up for a moment while closing another app. Tahongawaka (talk) 00:43, 17 October 2014 (UTC)

Noisy output

The Vorbis player output is noisy, producing what sounds like static crackle and stuttering at the beginning of playback. I tried all the examples shown on this Talk page, and every one of them behaves the same way. Curiously, if I pause the playback and then resume it, the sound comes out cleanly, without the static or stutter. Is this a problem with the Vorbis player implementation, or is there a problem in the LilyPond notation conversion to .ogg format? I'm accessing the player with a Linux machine, if that means anything. — QuicksilverT @ 14:41, 17 October 2014 (UTC)
I have the same problem on Windows XP. Thierry613 (talk) 16:22, 21 June 2015 (UTC)
and on mac os x 10.10.5 also. Any news? WiPI (talk) 11:08, 13 February 2018 (UTC)
I downloaded the ogg file and opened it in Audacity sound editor. The problem is in the ogg file, not in the player. The crackle is only in the right channel. Michielderoo (talk) 11:03, 12 December 2016 (UTC)
I think you're noticing what I reported this in phab:T50029
"crackling at start of OGG renditions of MIDI files." The bug in the third-party TiMidity software that generates the audio file. It was fixed years ago in a newer version, TiMidity++ 2.14.0, but the Linux distribution that the Wikimedia Foundation uses doesn't ship the fixed version :-( . Instead the extension switched to using Fluidsynth to generate the audio file (phab:T181897).
What's interesting is the crackling noise is still present in the sample on Extension:Score and on some of my old user pages, but not if I copy that score tag to a new page and preview there. It seems Mediawiki aggressively caches the generated audiofile for years!? I wonder if there's a way to invalidate all the generated .ogg audio files in some cache. skierpage (talk) 00:50, 26 September 2018 (UTC)

Using abcm2ps for ABC

ABC support in Score is achieved by using abc2ly, but abc2ly is imperfect: there is a lot of ABC syntax it doesn't understand. I looked at the source of Score, and the assumption that the image will be always built with Lilypond runs throughout the extension. But I think Score could be modified to support more than one rendering engine. The current workflow of: "(1) coerce the source to Lilypond, (2) use Lilypond" could be changed to "(1) given the language the score is in, find the best suitable backend and coerce the source to it, (2) use that backend". This would use abcm2ps for ABC if possible, otherwise it would use abc2ly+lilypond. Would this be a sensible change to Score? Blizinsk (talk) 00:27, 9 February 2015 (UTC)

Problem between Lilypond and Lua

Hello !

I tried to implement a Lua routine in order to get randomly a piece of Lilypond by this way :

<score>
\new RhythmicStaff {
\stemDown
{{#invoke:Aléa|choix_rythme}} -- Calling Lya routine
\bar "|."
}
</score>


And... it doesn't work... I get an error message :

Processing `.../file.ly'
Parsing...
.../file.ly:11:67: error: GUILE signaled an error for the expression beginning here
                                 \new RhythmicStaff { \stemDown {{#
                                                                   invoke:Aléa|choix_rythme}} \bar "|."} 
.../file.ly:12:32: error: syntax error, unexpected \layout
                                
                                \layout { }
.../file.ly:15:48: error: unknown escaped string: `\Score'
                                                
                                                \Score
.../file.ly:16:71: warning: Ignoring non-music expression
                                                tempoWholesPerMinute = 
                                                                       #(ly:make-moment 100 4)
.../file.ly:19:24: error: syntax error, unexpected end of input
                        
                        }
Unbound variable: invoke:Aléa|choix_rythme}}
fatal error: failed files: ".../file.ly"

exited with status: 1

So my question is :

May it be because Lilipond code is parsed before Lua code ? Or another reason ?

And if yes, can one modify this fact ?

And if not, do you know another way of processing ?

Thanks !


Thierry613 (talk) 19:47, 5 July 2015 (UTC)

Display size of score samples?

at en:Wikipedia talk:WikiProject Classical music#Use of music notation examples in articles on compositions we're wondering how the display size of score snippets generated with the score extension can be modified? --Francis Schonken (talk) 08:43, 18 August 2015 (UTC)

Compilererr

I've installed the extension and copy-pasted some score for testing purposes, see http://kerkliedwiki.nl/Gebruiker:Ecthelion3/Test/Score. The result is an error box with the message <score-compilererr>. Does anyone know what the problem could be? − Ecthelion3 (talk) − Kerkliedwiki (MW 1.26.3 / SMW 2.4.1) 15:36, 28 October 2016 (UTC)

Hello Ecthelion3, I checked the score text you used and everything is ok on my Mediawiki page. Did you checked the versions of Mediawiki and and the score extension you used? -Djiboun (talk) 08:07, 31 October 2016 (UTC)
I use MediaWiki 1.26.3 and downloaded Score for MW 1.26 using the extension distributor, so that souldn't be the problem. − Ecthelion3 (talk) − Kerkliedwiki (MW 1.26.3 / SMW 2.4.1) 12:17, 8 November 2016 (UTC)

Make images transparent

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I changed the code of score.body.php, this way all white is changed to transparent which looks better if your wiki has a different background Color or Image:

	private static function trimImage( $source, $dest ) {
		global $wgImageMagickConvertCommand;

		$cmd = wfEscapeShellArg( $wgImageMagickConvertCommand )
			. ' -trim -transparent white ' //Changed by VolkoV
			. wfEscapeShellArg( $source ) . ' '
			. wfEscapeShellArg( $dest );
		wfShellExec( $cmd, $rc );
		if ( $rc != 0 ) {
			throw new ScoreException( 'score-trimerr' );
		}
	}
VolkoV (talk) 19:02, 8 January 2017 (UTC)
submitted patch MarkAHershberger(talk) 18:18, 9 January 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Definition

Is there a possibility to define a piece of music before score an call it by its name in score? Seems not. E.g. soprano = {e e e g2 f4 f f d2 }

and then \new Voice { \soprano}

see https://de.wikipedia.org/wiki/Benutzer:Roomsixhu/Tanzlied

first score form lilypond Handbook

That gives errormessages with wrong = and unknown string.

Cheers Roomsixhu (talk) 21:19, 7 March 2017 (UTC)

I don't know. I have to find out myself. I am not a frequent lilypond user. It is always by try and error.... ArjanH (talk) 10:50, 8 March 2017 (UTC)
I have the same issue with Lilypond 2.19 and Mediawiki 1.27.1
Variable are not accepted befor \score Scoutladen (talk) 20:22, 13 March 2017 (UTC)
Seems to be an issue for the future. Roomsixhu (talk) 12:36, 18 March 2017 (UTC)
Using <score raw="1"> you can use variables too. Scoutladen (talk) 09:28, 22 March 2017 (UTC)
Very fine, I will try it immediatly. It should be putten into the help side. Roomsixhu (talk) 14:01, 22 March 2017 (UTC)
It works. For reducing the paper output:
\paper{
indent=0\mm
line-width=120\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
bookTitleMarkup = ##f
scoreTitleMarkup = ##f
}
is helpful. Roomsixhu (talk) 15:04, 22 March 2017 (UTC)

LilyPond could not be run: /usr/local/bin/lilypond is a non-executable file (even though it is)

Lilypond is not executable. /usr/local/bin/lilypond is the right place

lilypond est.ly is working on the server and generate test.pdf

$wgScoreLilyPond = '/usr/local/bin/lilypond';

but this will result in the following error message, when I call a wiki page with <score>...</score>

LilyPond konnte nicht ausgeführt werden: /usr/local/bin/lilypond ist eine nicht ausführbare Datei. Es muss sichergestellt sein, dass $wgScoreLilyPond in der Konfigurationsdatei richtig eingestellt wurde. 217.247.176.22 (talk) 21:19, 11 March 2017 (UTC)

What is shown when you run the following command on the command line:
ls -l /usr/local/bin/lilypond MarkAHershberger(talk) 21:54, 11 March 2017 (UTC)
-rwxr-xr-x 1 root root 124 10. Mär 23:04 /usr/local/bin/lilypond Scoutladen (talk) 22:10, 11 March 2017 (UTC)
What OS are you using? Is it a Redhat derivative? Is SELinux enabled? MarkAHershberger(talk) 22:17, 11 March 2017 (UTC)
Thank you for your questions. I'm using CentOS Linux 7.2.1511 (Core)‬
SEinux is disabled.
Do I have to enable SELinux? Scoutladen (talk) 08:26, 12 March 2017 (UTC)
/usr/ocal/bin/lilypond :
#!/bin/sh
me=`basename $0`
export LD_LIBRARY_PATH="/usr/local/lilypond/usr/lib"
exec "/usr/local/lilypond/usr/bin/$me" "$@"
-rwxr-xr-x 1 root root 4551040 17. Mär 2014  /usr/local/lilypond/usr/bin/lilypond
When I set $wgScoreLilyPond to /usr/local/lilypond/usr/bin/lilypond I get the same error. Scoutladen (talk) 08:47, 12 March 2017 (UTC)
Not the best solution, but I got it.
I have to set open basedir to /usr/local/bin Scoutladen (talk) 09:13, 13 March 2017 (UTC)
Glad you figured it out. I didn't think to ask if /usr/local/bin/lilypond was the actual lilypond executable. MarkAHershberger(talk) 15:43, 13 March 2017 (UTC)

Error: .../file.ly:29:1: error: Spurious expression in \score

Prozessing this file http://jurtenland.de/wiki/Die_Affen_rasen_durch_den_Wald I get various errors:

Processing `.../file.ly' Parsing... .../file.ly:29:1: error: Spurious expression in \score #(set-global-staff-size 14) .../file.ly:31:1: error: unrecognized string, not in text script or \lyricmode akkordea = \chordmode { .../file.ly:31:10: error: syntax error, unexpected '=', expecting '}' akkordea = \chordmode { .../file.ly:73:23: error: unknown escaped string: `\akkordea' \new ChordNames { \akkordea } .../file.ly:73:23: error: unrecognized string, not in text script or \lyricmode \new ChordNames { \akkordea } .../file.ly:179:25: error: syntax error, unexpected '}' } fatal error: failed files: ".../file.ly" exited with status: 1

Prozessing this code direct in Lilypond everthing is fine!

Lilypond 2.19.49

Mediawiki 1.27.1 Scoutladen (talk) 18:47, 13 March 2017 (UTC)

Unable to convert MIDI to Ogg/Vorbis

Trying to create output to Ogg/Vorbis I get this error

http://jurtenland.de/wiki/Atte_Katte_Nuwa

Code


<score raw="1" vorbis="1">

\version "2.19.56"

\language "deutsch"

\header {
  tagline = ""
}

#(set-global-staff-size 16)

global = {
  \autoBeamOff
  \time 2/4
  \key d \major
}

akkorde = \chordmode {
  d1 a1 d2 a2 d2 d2 d1*3/4 a1*3/4 a1*3/4 d1*3/4
}

melodie = \relative c' {
  \global
  \repeat volta 2 {
  d8 d d d
  d4 fis
  e8 e e e
  e4 g
  fis4 fis8 fis
  e4 e8 e
  d8 d d d
  d2 }
  \time 3/4
  fis8 fis fis fis
  fis8 fis h4 g2
  fis8 fis fis fis
  fis8 fis h4 g2

  \bar "|."
}

text = \lyricmode {
  \set stanza = "1."
  At -- te Ka -- te nu -- wa, at -- te ka -- te nu --wa, e -- mis -- a de -- mis -- a du -- la  mi -- sa de. Hex -- a ko -- la mis -- sa woa -- te, hex -- a ko -- la mi -- sa woa -te.
}

\score {
  <<
    \new ChordNames { \akkorde }
    \new Voice = "Lied" { \melodie }
    \new Lyrics \lyricsto "Lied" { \text }
  >>
\midi {}
}
</score>

Have you any idea, what I have to do?

Mediawiki 1.27.1 Extension TimedMediaHandler is installed and works with Ogg-Files Scoutladen (talk) 18:28, 20 March 2017 (UTC)

I'm having trouble duplicating your problem. The following works for me, what happens for you?


<score vorbis="1">
\version "2.18.2"

\relative c'' { \time 4/4 \key c \major 
c4 g8 g a4 g r b^> c^> r \bar "|." } 
\addlyrics { Shave and a hair -- cut: two bits. }

\midi{}
</score>

MarkAHershberger(talk) 15:34, 21 March 2017 (UTC)

Playmode `v' is not compiled in.
Try timidity -h for help
Seams to be a wrong compilation of timidity? How can I fix this? Scoutladen (talk) 09:26, 22 March 2017 (UTC)
How much control do you have over the server? It looks like the version of timidity you are using doesn't have Ogg Vorbis support since -Ov is Ogg Vorbis output mode. When I installed timidity on my Debian system, Ogg Vorbis support was included. It looks like Redhat systems include it by default as well. MarkAHershberger(talk) 14:25, 22 March 2017 (UTC)
I have access to the root-server (centos7)
tried to install / update timidity with ./configure --enable-audio=vorbis (version 2.14)
but there is no change... Scoutladen (talk) 15:40, 22 March 2017 (UTC)
It works with \layout{}
you have forgotten it.
Made some other changes to, but the did not help.
https://de.wikipedia.org/wiki/Benutzer:Roomsixhu/inuitlied Roomsixhu (talk) 19:11, 22 March 2017 (UTC)
Make sure the ogg vorbis development libraries are available when you run configure. It looks like you'll need libogg-devel and libvorbis-devel.
I was also able to get timidity installed using this rpm via the following command:
# sudo yum install ftp://ftp.pbone.net/mirror/li.nux.ro/download/nux/dextop/el7/x86_64/timidity++-2.14.0-6.el7.nux.x86_64.rpm
MarkAHershberger(talk) 19:11, 22 March 2017 (UTC)
exactly this rpm I have installed.
Now I've added libogg-devel and libvorbis-devel
Nothing happens. I think, I have to compile timidity with more options, but don't know how... Scoutladen (talk) 19:53, 22 March 2017 (UTC)
Available output modes (-O, --output-mode option):
  -Ow          RIFF WAVE file
  -Or          Raw waveform data
  -Ou          Sun audio file
  -Oa          AIFF file
  -Ol          List MIDI event
  -Om          Write MIDI file
  -OM          MOD -> MIDI file conversion
There is no Vorbis for me :-( Scoutladen (talk) 20:09, 22 March 2017 (UTC)
I have to compile timidity from source with
./configure --enable-audio=vorbis
but before I have to
make clean
For your code I can see the player. But there is no sound.
And for my code I get another error! Scoutladen (talk) 21:05, 22 March 2017 (UTC)
If you install the timidity++ rpm I pointed to above, you'll have timidity installed and won't need your compiled version.
Here's a couple of commands and what you should see in the output:
$ type timidity
timidity is hashed (/usr/bin/timidity)
$ timidity --help | grep -- -O
  -O mode    --output-mode=mode
Available output modes (-O, --output-mode option):
  -OO          Libao mode
  -Os          ALSA pcm device
  -Od          dsp device
  -Oj          JACK device
  -Ow          RIFF WAVE file
  -Or          Raw waveform data
  -Ou          Sun audio file
  -Oa          AIFF file
  -Ov          Ogg Vorbis
  -OF          FLAC
  -OS          Ogg Speex
  -Ol          List MIDI event
  -Om          Write MIDI file
  -OM          MOD -> MIDI file conversion
Output format options (append to -O? option):
$
I suspect that when you run "type timidity", you'll see /usr/local/bin/timidity instead of /usr/bin/timidity. MarkAHershberger(talk) 21:08, 22 March 2017 (UTC)
so I have set
$wgScoreTimidity = '/usr/bin/timidity';
instead of
$wgScoreTimidity = '/usr/local/bin/timidity'; Scoutladen (talk) 21:21, 22 March 2017 (UTC)
Also, you have an error in your MediaWiki:Common.js. You should not be using <script> tags. MarkAHershberger(talk) 22:16, 22 March 2017 (UTC)
I just took the time to set up score, timidity, selinux, etc, etc on my centos7 setup using the rpm (and not compiling it myself) and I got notes coming out. Whee!
I hope you can get your sound working. MarkAHershberger(talk) 23:57, 22 March 2017 (UTC)
OK. I've uninstalled timidity++ on my server (I found two instances)
Now I'm using your rpm-package.
Please have a look http://jurtenland.de/wiki/Shave_and_a_hair_cut
Two questions:
Can I fix the space between score and player?
Can you here any sound? Scoutladen (talk) 08:05, 23 March 2017 (UTC)
I'm not sure what is wrong, but from looking at questions like this one, I think you must not have any sound founts installed:
$ rpm -q -a | grep soundfont
fluid-soundfont-lite-patches-3.1-16.el7.noarch
fluid-soundfont-gm-3.1-16.el7.noarch
fluid-soundfont-common-3.1-16.el7.noarch
$ cat /etc/timidity++.cfg 
dir /usr/share/soundfonts
source fluid3gm.cfg
trysource fluid3gs.cfg
source fluid_altassign.cfg
Do you get the same results? MarkAHershberger(talk) 12:18, 23 March 2017 (UTC)
I get this result
$ rpm -q -a | grep soundfont
fluid-soundfont-gm-3.1-16.el7.noarch
fluid-soundfont-common-3.1-16.el7.noarch
$cat /etc/timidity++.cfg
dir /usr/share/soundfonts
source fluid3gm.cfg
trysource fluid3gs.cfg
source fluid_altassign.cfg
Scoutladen (talk) 20:53, 25 March 2017 (UTC)
It looks the same, although, I do have the fluid-soundfont-lite-patches and you don't.
It probably won't make a difference, but is everything the same if you install that package? MarkAHershberger(talk) 22:22, 25 March 2017 (UTC)
Thank you very much.
No difference with fluid-soundfont-lite-patches
Must be any other problem on my server. Scoutladen (talk) 16:39, 26 March 2017 (UTC)

Using this code from mediawiki:extension:Score


<score vorbis="1">\relative c' { f d f a d f e d cis a cis e a g f e }</score>

I get this output


<div id="mw-content-text" lang="de" dir="ltr" class="mw-content-ltr"><img src="/wiki/images/lilypond/j/q/jqn99bwy8777srpv45hxjoiu24f0636/jqn99bwy.png" width="434" height="52" alt="\relative c' { f d f a d f e d cis a cis e a g f e }"><div class="mediaContainer" style="width:300px"><div class="mwPlayerContainer k-player" style="width: 300px; position: relative; height: 20px;"><div class="videoHolder"><div class="mwEmbedPlayer" id="mwe_player_0" style=""><img src="/wiki/resources/assets/file-type-icons/fileicon-ogg.png" class="playerPoster" style="position: absolute; top: 0px; left: 140px; right: 0px; bottom: 0px; height: 20px; width: 20px;"></div><div title="Clip abspielen" class="play-btn-large" style="left: 50%; top: 50%; margin-left: -35px; margin-top: -27.5px;"></div></div><div class="ui-state-default ui-widget-header ui-helper-clearfix control-bar block" style="height: 20px;"><div class="ui-slider ui-slider-horizontal rButton volume-slider ui-widget ui-widget-content ui-corner-all"><div class="ui-slider-range ui-widget-header ui-slider-range-min" style="width: 80%;"></div><a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 80%;"></a></div><div title="Lautstärkeregelung" class="ui-state-default ui-corner-all ui-icon_link rButton volume_control"><span class="ui-icon ui-icon-volume-on"></span></div><div class="ui-widget time-disp">0:00</div><div class="play_head ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all" title="" style="position: absolute; left: 33px; right: 87px;"><div class="ui-slider-range ui-widget-header ui-slider-range-min ui-corner-all" style="width: 0%; z-index: 2;"></div><a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 0%; z-index: 4;"></a><div class="ui-slider-range ui-slider-range-min ui-widget-header ui-state-highlight ui-corner-all mw_buffer"></div></div><div title="Clip abspielen" class="ui-state-default ui-corner-all ui-icon_link lButton play-btn"><span class="ui-icon ui-icon-play"></span></div></div></div></div>

<!-- 

NewPP limit report

Cached time: 20170326190837

Cache expiry: 86400

Dynamic content: false

CPU time usage: 0.004 seconds

Real time usage: 0.004 seconds

Preprocessor visited node count: 4/1000000

Preprocessor generated node count: 24/1000000

Post‐expand include size: 0/2097152 bytes

Template argument size: 0/2097152 bytes

Highest expansion depth: 2/40

Expensive parser function count: 0/100

-->

<!-- 

Transclusion expansion time report (%,ms,calls,template)

100.00%    0.000      1 - -total

-->

<!-- Saved in parser cache with key my_wiki:pcache:idhash:1051-0!*!*!*!*!*!* and timestamp 20170326190837 and revision id 5913

 -->

</div>

Looking a the output from mediawiki, ther should be


<div class="mediaContainer" style="width:300px"><audio id="mwe_player_0" controls="" preload="none" style="width:300px" class="kskin" data-disablecontrols="options,timedText" data-durationhint="11.600453514739">

<source src="//upload.wikimedia.org/score/j/q/jqn99bwy8777srpv45hxjoiu24f0636/jqn99bwy.ogg" type="audio/ogg; codecs="vorbis""></audio></div>

Seams to be a wrong configuration.... Scoutladen (talk) 19:16, 26 March 2017 (UTC)

The difference you're seeing is related to the version installed. I checked your version page and installed matching versions and got similar output to what you have -- and it played.
A direct download of your ogg file shows that it is, indeed, silent.
That leads me to think that the problem is somewhere outside of MediaWiki.
At this point, I'm not sure what to look at. Since I am testing this on a virtual CentOS box on my laptop, I went ahead and uploaded a list of all the packages I have installed. Maybe you'll be able to spot something in there.
The other thing to do is to try running the command to convert the midi file to an ogg file yourself. You can find the commands by looking at your debug log and duplicate them.
For example here's what I see if I look for wfShellExec in my debug log:
$ grep wfShellExec images/debug.log | tail -5
wfShellExec: /bin/bash '/var/www/html/w/includes/limit.sh' 'LILYPOND_GC_YIELD='\''25'\'' '\''/usr/local/bin/lilypond'\'' '\''-dsafe=#t'\'' -dbackend=ps --png --header=texidoc '\''/tmp/MWLP.e8f63cbbbf327ecd7fe9f86157c73e0a/file.ly'\'' 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
wfShellExec: /bin/bash '/var/www/html/w/includes/limit.sh' ''\''/usr/bin/convert'\'' -trim '\''/tmp/MWLP.e8f63cbbbf327ecd7fe9f86157c73e0a/file.png'\'' '\''/tmp/MWLP.e8f63cbbbf327ecd7fe9f86157c73e0a/file-trimmed.png'\'' 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
wfShellExec: /bin/bash '/var/www/html/w/includes/limit.sh' ''\''/usr/bin/timidity'\'' -Ov '\''--output-file=/tmp/MWLP.e8f63cbbbf327ecd7fe9f86157c73e0a/file.ogg'\'' '\''/tmp/MWLP.e8f63cbbbf327ecd7fe9f86157c73e0a/file.midi'\'' 2>&1' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
wfShellExec: /bin/bash '/var/www/html/w/includes/limit.sh' 'GIT_DIR='\''/var/www/html/w/.git'\'' '\''/usr/bin/git'\'' show -s --format=format:%ct HEAD' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
wfShellExec: /bin/bash '/var/www/html/w/includes/limit.sh' 'GIT_DIR='\''/var/www/html/w/extensions/MwEmbedSupport/../../.git/modules/extensions/MwEmbedSupport'\'' '\''/usr/bin/git'\'' show -s --format=format:%ct HEAD' 'MW_INCLUDE_STDERR=;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
$
Copying everything after "wfShellExec:" gives me something I can put in a shell file and duplicate and actions.
There may be some interesting output there. MarkAHershberger(talk) 22:23, 26 March 2017 (UTC)
Thank you. Now I've enabled Error-reporting and the debug.log
This way I found some other error:
Every Lilypond-Code with
<score raw ="1">
results in
Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/var/www/vhosts/jurtenland.eu/:/tmp/:/usr/local/bin/) in /var/www/vhosts/jurtenland.eu/httpdocs/kohtenland/wiki/includes/GlobalFunctions.php on line 2426
Thats not in case with vorbis, but perhaps the open_basedir restriction causes same error for timidity. Scoutladen (talk) 19:19, 27 March 2017 (UTC)
With the master branch of Extension:Score now I get some sound http://jurtenland.de/wiki/Auf_der_Mauer,_auf_der_Lauer
Older song still didn't work till I change some notation. Have I to kill some files to reset these songs? Scoutladen (talk) 20:33, 27 March 2017 (UTC)
You should maybe set Manual:$wgLanguageCode to "de".
I'm glad you found a way to get sound. Your open_basedir issue needs to be taken up with your hosting provider, or, since you have access to root, you can change your php.ini yourself.
I'm not sure how to regenerate the files. Have you tried adding "?action=purge" to the url of a web page that doesn't seem to be working to regenerate the audio file? MarkAHershberger(talk) 09:39, 29 March 2017 (UTC)
Now every songs are working. Thank you very much or your help. Scoutladen (talk) 18:47, 29 March 2017 (UTC)

paper format

seems to be here an A4 paper default with lilypond, I cant change it here

https://de.wikipedia.org/wiki/Benutzer:Reiner_Stoppok/Tanzlied_aus_Poniky

or turn it even off, to make reasonable explicit line breaks.

Cheers Roomsixhu (talk) 00:55, 23 March 2017 (UTC)

It looks like you aren't setting it correctly. I copied your page
here
and modified it slightly
using the proper page size setting commands and got this error:
error
Processing `.../file.ly'
Parsing...
.../file.ly:19:2: error: GUILE signaled an error for the expression beginning here
#
 (set-default-paper-size = "a3 'landscape")
.../file.ly:22:3: error: GUILE signaled an error for the expression beginning here
 #
  (set-paper-size = "a3 'landscape")  % Seitengröße auf DIN A4 quer setzen.
warning: systems run off the page due to improper paper settings, setting default values
Interpreting music...[8][16][24]
Preprocessing graphical objects...
Interpreting music...
MIDI output to `file.midi'...
Finding the ideal number of pages...
Fitting music on 2 or 3 pages...
Drawing systems...
Layout output to `file.ps'...
Converting to PNG...No variable named $defaultpaper in #<module 7f7a95562b80>
Unbound variable: set-paper-size
fatal error: failed files: ".../file.ly"
exited with status: 1
That, at least, looks like something is happening. MarkAHershberger(talk) 01:23, 23 March 2017 (UTC)
With frescobaldi it works fine with a4 landscape in your manner. But in wikpedia a # creates error messages. My version is being ignored, and defaults to A4.
Maybe we have to escape the # somehow. But which escape sign? \ is already used.
Or an wiki escape sign?
The error even write: No variable named $defaultpaper in #<module 7f7a95562b80>
or
Converting to PNG...Unbound variable: set-paper-size Roomsixhu (talk) 01:35, 23 March 2017 (UTC)
I tried the same syntax on my local wiki and got the same result.
I tried using lilypond from the command line and got similar results. Although it looks like I have a bit more information:
file.ly:18:2: error: GUILE signaled an error for the expression beginning here
#
 (set-default-paper-size = "a3 'landscape")
Wrong type argument in position 2 (expecting string): #<primitive-generic =>
I forgot to remove the = from your example.
Doing that and it works on the command line. From the available sizes, I liked "ansi d" best for this piece.
Now, to figure out why it doesn't work in MW. MarkAHershberger(talk) 02:13, 23 March 2017 (UTC)
ok, so it looks like the Score extension adds "-dsafe=#t" which tells lilypond to disable some stuff -- like paper sizes.
The way around this (maybe) is to file a task in phabricator asking WMF to set up a jail for lilypond. MarkAHershberger(talk) 02:26, 23 March 2017 (UTC)
Thanks for your insight. They fear everbody compiles a Tschaikowski Piano concerto no. 1. But either they open a Kerker, (dungeon, jail), or implement a reasonable paper choice tag, like four pages output a4 landscape, that would be one side of a partitura.
Where can I ask for it? Roomsixhu (talk) 19:40, 23 March 2017 (UTC)
Phabricator is where requests like this are filed. Let me know when file a request so I can watch it. MarkAHershberger(talk) 01:20, 24 March 2017 (UTC)
Hopefully here
https://phabricator.wikimedia.org/T161293
ist is. Roomsixhu (talk) 09:06, 24 March 2017 (UTC)
Who opens the thread there and makes triage? Nobody? Me? Roomsixhu (talk) 19:44, 29 March 2017 (UTC)
I've asked the Bugwrangler to help out. Also, the bug was assigned to you and it shouldn't have been. MarkAHershberger(talk) 05:34, 30 March 2017 (UTC)

Parallel Square Premusic

Hello, I am the inventor of Parallel Square Premusic, it is very much like ABC notation except enormously more robust and extensible.

[]ly__________Hap___birth___you!____Hap___birth___you!____Hap___birth___..._____Hap___birth___you!__
[]ly___________-py___-day____________-py___-day____________-py___-day_______...__-py___-day_________
[]ly____________________to____________________to____________________dear__________________to________
[]sc  --------d4d4||e4d4g4||F4------d4d4||e4d4a4||g4------d4d4||d5b4g4||F4--e4--c5c5||b4g4a4||g4------
[]rh  --------daad||dadada||daaaaaaadaad||dadada||daaaaaaadaad||dadada||daaadaaadaad||dadada||daaa----
[]sc  ----d4------||--d4d4||----a3--a3--||--a3a3||----d4--d4--||--d4d4||----g4--g4--||--d4d4||d4------
[]sc  ----b3------||--b3b3||----F3--F3--||--F3F3||----b3--b3--||--b3b3||----e3--e3--||--b3c4||b3------
[]sc  g2--g3------||g2g3g3||d2--d3--d3--||d2d3d3||g2--g3--g3--||g2g3g3||c2--c3--c3--||g2g3F3||g3g2----
[]rh  daaadaaa----||dadada||daaadaaadaaa||dadada||daaadaaadaaa||dadada||daaadaaadaad||dadada||dada----

You can read the documentation for my format at http://anticapit.al/ps/Parallel+Squares.html and http://anticapit.al/ps/Premusic.html. It requires very little explanation to read: only, first, interpret not individual characters but pairs or squares of characters, second, squares that are in the same column are parallel and refer to the same point in the music, and third, the first letters in each square line are the type square (here, lyrics, pitch in scientific pitch notation, and rhythm in the most intuitive notation conceivable...)

I look forward to the adoption of my format by many pieces of software, because it's better than all existing formats for the same information. There is no part of music that couldn't be adapted (likely in the most intuitive way) to a square character notation and appended to a square line in my format without breaking programs that only support the other types of square lines.

It's inevitable that this extension will eventually be updated to support my format. I'd love to speak to someone who could help me facilitate that. PSPremusic (talk) 20:25, 5 April 2017 (UTC)

If you would like the Score extension to support your format, you need to get support included into LilyPond. If you would like Score adapted after support is included with LilyPond, we'll consider your patches. MarkAHershberger(talk) 21:06, 5 April 2017 (UTC)

Low res Images

The extension creates low resolution pngs which look poor on High-DPI displays like smartphones or tablets. Trockennasenaffe (talk) 08:44, 27 August 2017 (UTC)

Tabs for other instruments than guitare

The extension handles only guitare tabs, could we have other instruments? @Marco de Freitas Marco de Freitas (talk) 20:32, 19 November 2017 (UTC)

I'm not sure what you mean. From Help:Score it certainly looks like more than guitar tabs are supported. MarkAHershberger(talk) 20:23, 20 November 2017 (UTC)
Yes the extension does a lot of nice things. But regarding tabs, the extension only supports the default tab format of lilypond, which is meant for guitare.
In order to display bass tabs, I would like to have what is described in lilypond documentation as "custom-tablatures".
http://lilypond.org/doc/v2.19/Documentation/notation/common-notation-for-fretted-strings#custom-tablatures
All this because I'm willing to creat a bass course in wikiversity.@Marco de Freitas Marco de Freitas (talk) 18:02, 24 November 2017 (UTC)
Since you want to use the other tabs on a sister site here, you should create a Phabricator task explaining exactly what you want and where you're going to use it. After that, you should reach out to @AKlapper (WMF) and ask who he would recommend you contact or how to proceed. MarkAHershberger(talk) 22:30, 25 November 2017 (UTC)

Installing problems on 1.28.2 MediaWiki

Hi,

I've tried to install Score extension on MediaWiki Ver. 1.28.2, I've Uploaded the extension, and created the folders as it needs (with the right permissions), (also made all LocalSetting.php add-lines). when I'm try to run the extension, I get wgScoreLilyPond alert (Unrunable). Is it because I need to install LilyPond first? and if so, where can I get a LilyPond extension install link?

Thanks Alot! 213.57.135.184 (talk) 11:20, 18 February 2018 (UTC)

Lilypond is an application that runs on the command line: http://lilypond.org/ MarkAHershberger(talk) 23:41, 13 March 2018 (UTC)

Abc2Ly + D-sharp minor = problem

Hello! See:

<score lang="ABC">K:D#m
D E F G A B c d | d c B A G F E D|</score>

convert to ("es" instead of "is"):

\key dis \minor   des'8    ees'8    f'8    ges'8    aes'8    bes'8    ces''8    
des''8    \bar "|"   des''8    ces''8    bes'8    aes'8    ges'8    f'8    
ees'8    des'8  \bar "|" 

Result:

K:D#m
D E F G A B c d | d c B A G F E D|

Other keys are OK. Please, fix this. Thank you! ПростоУчастник (talk) 15:06, 13 April 2018 (UTC)

lilypond on macosx

See also https://lists.gnu.org/archive/html/bug-lilypond/2015-11/msg00045.htmlTheDJ (Not WMF) (talkcontribs) 17:55, 12 August 2018 (UTC)

Broken

At this moment, <score>...</score> is completely broken – it doesn't render anything, instead it displays the source code. Michael Bednarek (talk) 14:05, 21 October 2018 (UTC)

Problems about title

I can add a title when using ABC notation, but I cat add it when using LilyPond, How can I solve this problem when using LilyPond?

Examples:

ABC notation:


Unable to convert ABC file to LilyPond format:

+ /usr/bin/abc2ly -s -o file.ly file.abc
/usr/bin/abc2ly from LilyPond 2.22.0
Parsing `file.abc'...
Line ... file.abc: 6: Huh?  Don't understand

LilyPond:

 \relative c'' { \clef treble \key e \minor \time 6/8 \tempo "Allegro commodo non agitato" \partial 8*1 b8-.\p_"dolce" | e4(\< fis8) g4( a8)\! | b4 b8-. b4.--\< | c4.\sf\! c->\> | b->\!\p~ b4 b8\<( | a4.)\!\dim a4 a8 | g4( a8 g4) g8(\< | fis4.)\!\> fis4(\!\> fis8-.)\! | e4\> r8\! }

122.116.63.54 (talk) 18:25, 18 November 2018 (UTC)

ABC notation: 122.116.63.54 (talk) 18:43, 18 November 2018 (UTC)

Unable to convert ABC file to LilyPond format:

+ /usr/bin/abc2ly -s -o file.ly file.abc
/usr/bin/abc2ly from LilyPond 2.22.0
Parsing `file.abc'...
Line ... file.abc: 2: Huh?  Don't understand
122.116.63.54 (talk) 18:46, 18 November 2018 (UTC)

It can not be installed

download lilypond executable .exe but when adding the path of that file in localsentigs.php when loading the site everything was fine but when I inserted it <score lang = "ABC">

X: 1

M: C

L: 1/4

K: C

C, D, E, F, | G, A, B, C | D E F G | A B c d |

e f g a | b c 'd' e '| f' g 'a' b '|]

</ score>

and save the changes shows me this error

LilyPond failed to run: /$IP/images/lilypond/lilypond-2.19.82-1.mingw.exe is not an executable file. Make sure $ wgScoreLilyPond is set correctly. 189.217.123.254 (talk) 16:28, 21 January 2019 (UTC)

You probably have
$wgScoreLilyPond = '$IP/images/lilypond/lilypond-2.19.82-1.mingw.exe';
when you should have
$wgScoreLilyPond = "$IP/images/lilypond/lilypond-2.19.82-1.mingw.exe";
(Note the quotes.)
I would not put the binary in my images directory, either. MarkAHershberger(talk) 23:57, 21 January 2019 (UTC)
It still does not work, I put it with "and the executable file I put it in a lilypond folder inside the extension score but it still does not work. Uvas magicas (talk) 18:49, 24 January 2019 (UTC)
What is the error message now? MarkAHershberger(talk) 19:26, 24 January 2019 (UTC)
the same as above Uvas magicas (talk) 04:01, 25 January 2019 (UTC)
If it is still failing with LilyPond failed to run: /$IP/images/lilypond/lilypond-2.19.82-1.mingw.exe is not an executable file, then could you copy the line here that you are using for $wgScoreLilyPond? MarkAHershberger(talk) 15:35, 26 January 2019 (UTC)
$wgScoreLilyPond = $IP/extensions/Score/lilypond/lilypond-2.18.82-1.mingw.exe Uvas magicas (talk) 00:28, 4 February 2019 (UTC)
You need to use quotes:
$wgScoreLilyPond = "$IP/extensions/Score/lilypond/lilypond-2.18.82-1.mingw.exe" MarkAHershberger(talk) 01:04, 5 February 2019 (UTC)
I tried it like that but I still got that error:
LilyPond could not be executed: /home/surtico/public_html/laramaazul/wiki/extensions/Score/lilypond/lilypond-2.18.82-1.mingw.exe is not an executable file. Make sure that $ wgScoreLilyPond is aesthetically defined correctly. Uvas magicas (talk) 01:12, 5 February 2019 (UTC)
You are using the Windows version on a Linux host. You will need the Linux version. MarkAHershberger(talk) 01:34, 5 February 2019 (UTC)

Layout issue

There is a layout issue in this extension, causing the scale to by under the text. See https://phabricator.wikimedia.org/T216305 for examples Xaosflux (talk) 19:58, 16 February 2019 (UTC)

Score doesn't run on MediaWiki on Windows.

The error is:

'c:\LilyPond\usr\bin\lilypond.exe" "--version' is not recognized as an internal or external command, operable program, or batch file. Dzeaman (talk) 11:41, 24 April 2019 (UTC)

Problems about title

Problem solved

I can add a title when using ABC notation, but I can't add it when using LilyPond. How can I add a title when using LilyPond?

Examples:


ABC notation:


 X:1
 T:Die Moldau
 M:6/8
 L:1/8
 R:jig
 K:e
 B | e2 f g2 a | b2 b b3 | c'3 c'3 | b3 b2 b | a3 a2 a | g2 a g2 g | f3 f2 f | e2 z ||

LilyPond:

 \relative c'' { \clef treble \key e \minor \time 6/8 \tempo "Allegro commodo non agitato" \partial 8*1 b8-.\p_"dolce" | e4(\< fis8) g4( a8)\! | b4 b8-. b4.--\< | c4.\sf\! c->\> | b->\!\p~ b4 b8\<( | a4.)\!\dim a4 a8 | g4( a8 g4) g8(\< | fis4.)\!\> fis4(\!\> fis8-.)\! | e4\> r8\! }

118.168.59.94 (talk) 12:23, 19 July 2019 (UTC)

See the example at :en:Help:Score#Adding_lyrics
En:Help:Scores#Adding%20lyrics Michael Bednarek (talk) 01:15, 20 July 2019 (UTC)
Problem solved. Thanks! 2402:7500:588:318B:0:0:78C4:1BEE (talk) 06:07, 5 March 2020 (UTC)
May I ask how it was solved? If I try adding a "\header { Die Moldau }" to your example here it doesn't work?
With a header:

Unable to compile LilyPond input file:

line 1 - column 26:
syntax error, unexpected '}', expecting '.' or '='
--------
line 7 - column 1:
syntax error, unexpected '}'
Without a header:
 \relative c'' { \clef treble \key e \minor \time 6/8 \tempo "Allegro commodo non agitato" \partial 8*1 b8-.\p_"dolce" | e4(\< fis8) g4( a8)\! | b4 b8-. b4.--\< | c4.\sf\! c->\> | b->\!\p~ b4 b8\<( | a4.)\!\dim a4 a8 | g4( a8 g4) g8(\< | fis4.)\!\> fis4(\!\> fis8-.)\! | e4\> r8\! }
(Actually scores are now all showing as disabled?)

Unable to compile LilyPond input file:

line 2 - column 1:
syntax error, unexpected ':'
--------
line 2 - column 91:
syntax error, unexpected <
--------
line 3 - column 41:
syntax error, unexpected <
Lwangaman (talk) 08:07, 18 October 2020 (UTC)
The Lilypond extension has been disabled for several months now. Judging by the lack of activity at phab:T257066, I wouldn't expect it to return any time soon. Michael Bednarek (talk) 09:41, 18 October 2020 (UTC)
Use raw="1" to add header when using LilyPond. 122.116.63.54 (talk) 10:18, 26 December 2020 (UTC)

Extension:score installed no sound

I am getting no sound the extension creates the files but doesn't convert to audio. I am not getting any errors or sound. AlgorithmGG (talk) 10:01, 29 December 2019 (UTC)

slight correction its ready to play, it would seem fluid synth isn't doing its job and when i comment it out it breaks with no fall back. since i configured lame the files are mp3 now rather than ogg but that shouldn't be a problem. AlgorithmGG (talk) 22:58, 29 December 2019 (UTC)

Why Category:Pages using deprecated score attributes?

Following some investigation at en:Category talk:Pages using deprecated score attributes, it seems that adding override_audio= or override_midi= will cause the containing page to be added to Category:Pages using deprecated score attributes. Why? Can that behaviour be stopped? Michael Bednarek (talk) 00:02, 14 May 2020 (UTC)

This was mentioned in Project:Tech News/2019#Tech News: 2019-25
The TimedMediaHandler extension now handles MIDI files, so that putting a wikilink like [[File:somefile.mid]] creates a player. Eventually (phab:T135597) Extension:Score will lose its redundant code, hence the deprecation. I added an explanation of why these attributes are deprecated to this page and how to fix. I haven't added this yet to en:Help:Score.
The behavior won't be exactly the same (e.g. the better MIDI file won't be shown when you click on the score). I wonder why pages override the generated MIDI and audio; their generation has improved. skierpage (talk) 09:48, 23 May 2020 (UTC)
The generation of MIDI files may have improved, but I think the override is mostly done with .ogg files. These could be sound files from actual performances, or from MIDI files that editors have created in their own environment with Soundfonts or similar which most likely generates better sound than this extension. Then there are cases where LilyPond doesn't produce certain ornaments at all. Michael Bednarek (talk) 10:14, 23 May 2020 (UTC)
The non-deprecated override method mentioned overleaf, "Deprecated, instead you can add a [[File:name.oga]] wikilink after the score tag." doesn't seem to work; see en:Help talk:Score#Obsolete and deprecated score attributes, including override_midi, override_audio, override_ogg. Michael Bednarek (talk) 03:01, 25 May 2020 (UTC)
Sorry, I should have said "after the closing </source> tag." I also responded on that en-wiki talk page. skierpage (talk) 10:46, 25 May 2020 (UTC)

After upgrading my wiki to 1.35 lilypond not working

I have just updated my wiki from 1.34 to 1.35. I have everything working except Lilypond. When adding a <nowiki><score></nowiki> element to a page I am seeing this error:

Unable to obtain LilyPond version:

Warning: an existing sandbox was detected. /usr/bin/lilypond --version  will run without any additional sandboxing features in a /bin/sh shell
GNU LilyPond 2.18.2

Here is my configuration:


wfLoadExtension( 'Score' );

$wgScoreTrim = true;

$wgShellRestrictionMethod = 'firejail';

$wgScoreLilyPond = "/usr/bin/lilypond";

$wgScoreAbc2Ly = '/usr/bin/abc2ly';

$wgScoreFluidsynth = '/usr/bin/fluidsynth';

$wgScoreSoundfont = '/usr/share/sounds/sf2/FluidR3_GM.sf2';

$wgScoreTimidity = '/usr/bin/timidity';

$wgScoreLame = '/usr/bin/lame'; Lwangaman (talk) 22:47, 17 October 2020 (UTC)

since it is saying something about sandboxing, what happens if you comment out $wgShellRestrictionMethod? MarkAHershberger(talk) 00:14, 19 October 2020 (UTC)
I tried that but to no avail, same error message. I wonder if it has anything to do with Lilypond being generally disabled? Lwangaman (talk) 21:09, 25 October 2020 (UTC)
I was still having trouble after upgrading to MediaWiki 1.36. The only solution was to explicitly set $sgShellRestrictionMethod to false. For some reason, firejail is just causing problems. It was preventing both pygmentize from working such that SyntaxHighlighting was failing, and lilypond from working such that Score tags were failing. Lwangaman (talk) 19:13, 12 October 2021 (UTC)

Score upload directories owned by root

Mediawiki 1.34

Score 0.3.0 (0f4d4c1)


Not sure if this is an issue with my server configuration or a bug in the extension, hopefully someone can clarify. My server is setup to run under the user www-data, but new directories created under images/lilypond/... when generating new scores have the owner set to root instead of www-data as I would expect. This causes the pages that render scores in the wiki to throw a error saying that its impossible to copy the files to their destination ("mwstore://score-backend/score-render/..."). I can run chown on my images directory to set owner back to www-data and the error disappears, but I want to ensure that the directories are created with the correct owner in the first place. This problem doesn't occur with normal file uploads, only directories created by Score. Any ideas/suggestions for fixing this? 192.222.211.196 (talk) 14:33, 1 April 2021 (UTC)

Score not playing nicely with VideoJS / TimedMediaHandler

It seems that Score does not work well with the VideoJS player. When the TimedMediaHandler extension is enabled and there is another media element on a page, TMH tries to apply VideoJS to Score elements that have sound="1" but results in a disabled player with sound source File:Undefined. See phabricator:T245377. For the time being I'm forcing the Kaltura player which plays nicely in all circumstances ($wgTmhWebPlayer = "mwembed";). Lwangaman (talk) 20:17, 12 October 2021 (UTC)

phab:T306836 and phab:T306836 have been fixed, and I think with phab:T248418 VideoJS is now the default player on all wikis. skierpage (talk) 00:56, 19 May 2022 (UTC)
This situation is still not fixed, and unfortunately the Kaltura player has now been removed so that is no longer an option. Here is the situation:
1) When there are only Score audio elements on a page there is no problem, the VideoJS player is not invoked only the native browser player is used.
2) When there are only non-Score audio elements on a page there is no problem, the VideoJS player is invoked and the audio elements use the VideoJS player
3) When there are both Score audio elements and non-Score audio elements on a page, the VideoJS player is invoked by the non-Score audio elements and applied to all audio elements on the page including the Score audio elements, however the Score audio elements do not support VideoJS.
This should demonstrate the issue:
Non Score audio element:
Score audio element:

Unable to compile LilyPond input file:

line -2 - column 22:
Missing music in \score
--------
line 2 - column 1:
syntax error, unexpected ':', expecting '}'
--------
line 2 - column 587:
syntax error, unexpected >>
--------
line 9 - column 1:
syntax error, unexpected '}'
Lwangaman (talk) 00:33, 24 August 2024 (UTC)
hmmm funny, it seems that VideoJS is not being invoked on Talk pages? My example above doesn't actually show the problem, because no VideoJS player is invoked here... Lwangaman (talk) 00:34, 24 August 2024 (UTC)
I tried to recreate the same example on my User page: User:Lwangaman#Testing_Score_and_non-Score_audio_elements_together, the VideoJS player is being invoked on the non-Score audio element whereas it is not being invoked on the Score audio element, and both are still playing nicely. So I'm a bit stumped, because this is not working well on another external wiki: https://en.seminaverbi.bibleget.io/wiki/User_talk:Johnrdorazio . So I'm really not sure what the heck is going on. Why is the VideoJS getting applied to Score audio elements on the external wiki but not on Mediawiki? Is there a magic setting that needs to be set in LocalSettings to prevent VideoJS being applied to Score audio elements? Lwangaman (talk) 00:44, 24 August 2024 (UTC)
Bugs with Score and other media players were fixed in Wikipedia's wiki instances around July 2024, see phab:T295514 and phab:T363630. The TimedMediaHandler JavaScript code that "infuses" the VideoJS player into video and audio tags (replacing the native browser player) was running on Score's audio player as well, and was breaking. I think if you update the TMH extension on your wiki the behavior should fix.
I haven't seen a spec for when audio should use the native browser player versus TMH/VideoJS. I think part of the rationale for infusing the VideoJS player into audio tags is that it could have subtitles (captions) which the VideoJS player can present with its [CC] button. Comments on those two Phabricator bug reports have a lot of details. skierpage (talk) 08:18, 25 August 2024 (UTC)

Error after Upgrade from 1.31.1 to 1.35.4

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) GNU LilyPond 2.19.56


This error I get after upgrading to 1.35.4.


Where can I found some more information about this? 2003:DF:7F1E:9700:41EC:5F0F:D4C1:D287 (talk) 10:59, 16 December 2021 (UTC)

Mistake in notation of whole rest and half rest

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I'd like to notice that in this extension we have mistake in notation of rests. As I know the correct notation is subsequently:

r1-\markup { \smaller half rest}
r2-\markup { \smaller whole rest}

...so we have equantion:

+ =
r2

In present MediaWiki version of LiliPond is wrong notation, because is subsequently:

r2-\markup { \smaller half rest}
r1-\markup { \smaller whole rest}

So in point of MediaWiki's view it is at the moment so...:

+ =
r1

Could anybody correct this failure in this extentension? Thanks in advance! Superjurek (talk) 16:47, 29 January 2023 (UTC)

If I mixed up both rests and this version of LilyPond shows correctly, then I would like to
retract this Thread. I was honestly convinced that I thought right. Superjurek (talk) 17:15, 29 January 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Lilypond doesn't show in Special:Version installed software

Greetings, I am attempting to install this extension, and after following the instructions for it and shellbox as best as I could, the Score extension shows in the Special:Version page but Lilypond does not show in the "installed software" section. When I try to create a score I get a "unable to find lilypond version" error. I was wondering if anyone else had dealt with this.


Lilypond was installed through the debian package manager. 174.166.22.197 (talk) 16:30, 18 July 2023 (UTC)

Do discontinued/removed attributes really need to be as documented as current/active attributes?

If yes. For how long? Isn't it better to keep the documentation "clean" and then move the discontinued/removed attributes to a seperate section?

Question moved and translated comment from user 188.149.213.172 Extension talk:Score/sv. Sabelöga (talk) 22:04, 25 July 2024 (UTC)

Category:Pages using the Score extension Category:Pages with score rendering errors Category:Talk pages using deprecated source tags Category:Talk pages with broken file links