# Extension talk:Score

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

2

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";). Reply to "Score not playing nicely with VideoJS / TimedMediaHandler" ## Error after Upgrade from 1.31.1 to 1.35.4 1 /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? Reply to "Error after Upgrade from 1.31.1 to 1.35.4" ## After upgrading my wiki to 1.35 lilypond not working 4 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'; since it is saying something about sandboxing, what happens if you comment out $wgShellRestrictionMethod?

I tried that but to no avail, same error message. I wonder if it has anything to do with Lilypond being generally disabled?

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.

Reply to "After upgrading my wiki to 1.35 lilypond not working"

## Problems about title

6
Summary by 2402:7500:588:318B:0:0:78C4:1BEE

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:

LilyPond:

Problem solved. Thanks!

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:

Musical scores are temporarily disabled.

Without a header:

Musical scores are temporarily disabled.

(Actually scores are now all showing as disabled?)

Musical scores are temporarily disabled.

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.

Use raw="1" to add header when using LilyPond.

Reply to "Problems about title"

## Abc2Ly + D-sharp minor = problem

1

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:

Other keys are OK. Please, fix this. Thank you!

Reply to "Abc2Ly + D-sharp minor = problem"

## Problems about title

3

￼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 from LilyPond 2.18.2
Parsing .../file.abc'...
Line ... .../file.abc: 6: Huh?  Don't understand


LilyPond:￼

ABC notation:

Reply to "Problems about title"

## Score upload directories owned by root

1

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?

Reply to "Score upload directories owned by root"

## Why Category:Pages using deprecated score attributes?

5

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.

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.

Sorry, I should have said "after the closing </source>` tag." I also responded on that en-wiki talk page.

Reply to "Why Category:Pages using deprecated score attributes?"

## Extension:score installed no sound

2

I am getting no sound the extension creates the files but doesn't convert to audio. I am not getting any errors or sound.

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.

Reply to "Extension:score installed no sound"

## Score doesn't run on MediaWiki on Windows.

1

The error is:

'c:\LilyPond\usr\bin\lilypond.exe" "--version' is not recognized as an internal or external command, operable program, or batch file.

Reply to "Score doesn't run on MediaWiki on Windows."