Extension talk:Score

About this board

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

Score not playing nicely with VideoJS / TimedMediaHandler

6
Lwangaman (talkcontribs)

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";).

Skierpage (talkcontribs)
Lwangaman (talkcontribs)

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:


{ \new PianoStaff << \new Staff \relative c'' { \set Staff.midiInstrument = #"violin" \clef treble \tempo 8 = 126 \time 3/16 r16 <d c a fis d>\f-! r16\fermata | \time 2/16 r <d c a fis d>-! \time 3/16 r <d c a fis d>8-! | r16 <d c a fis d>8-! | \time 2/8 <d c a fis>16-! <e c bes g>->-![ <cis b aes f>-! <c a fis ees>-!] } \new Staff \relative c { \set Staff.midiInstrument = #"violin" \clef bass \time 3/16 d,16-! <bes'' ees,>-! r\fermata | \time 2/16 <d,, d,>-! <bes'' ees,>-! | \time 3/16 d16-! <ees cis>8-! | r16 <ees cis>8-! | \time 2/8 d16\sf-! <ees cis>-!->[ <d c>-! <d c>-!] } >> }
Lwangaman (talkcontribs)

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 (talkcontribs)

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?

Skierpage (talkcontribs)

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.

Reply to "Score not playing nicely with VideoJS / TimedMediaHandler"

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

1
Sabelöga (talkcontribs)

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.

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

Using abcm2ps for ABC

1
Blizinsk (talkcontribs)

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?

Reply to "Using abcm2ps for ABC"

Score upload directories owned by root

1
192.222.211.196 (talkcontribs)

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"

Extension:score installed no sound

2
AlgorithmGG (talkcontribs)

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 (talkcontribs)

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"

Problems about title

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

Problem solved

118.168.59.94 (talkcontribs)

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\! }
Michael Bednarek (talkcontribs)
2402:7500:588:318B:0:0:78C4:1BEE (talkcontribs)

Problem solved. Thanks!

Lwangaman (talkcontribs)

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.
Michael Bednarek (talkcontribs)

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.

122.116.63.54 (talkcontribs)

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

Reply to "Problems about title"
Roomsixhu (talkcontribs)
MarkAHershberger (talkcontribs)

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:

That, at least, looks like something is happening.

Roomsixhu (talkcontribs)

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

MarkAHershberger (talkcontribs)

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 (talkcontribs)

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.

Roomsixhu (talkcontribs)

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?

MarkAHershberger (talkcontribs)

Phabricator is where requests like this are filed. Let me know when file a request so I can watch it.

Roomsixhu (talkcontribs)
Roomsixhu (talkcontribs)

Who opens the thread there and makes triage? Nobody? Me?

MarkAHershberger (talkcontribs)

I've asked the Bugwrangler to help out. Also, the bug was assigned to you and it shouldn't have been.

Reply to "paper format"

Lilypond doesn't show in Special:Version installed software

1
174.166.22.197 (talkcontribs)

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.

Reply to "Lilypond doesn't show in Special:Version installed software"

Mistake in notation of whole rest and half rest

2
Summary by Superjurek

In this page and in article on Wikipedia are evidences that present version of LilyPond shows both rests correctly.

Superjurek (talkcontribs)

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 (talkcontribs)

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.

Error after Upgrade from 1.31.1 to 1.35.4

1
2003:DF:7F1E:9700:41EC:5F0F:D4C1:D287 (talkcontribs)

/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"
Return to "Score" page.