Extension:Score/hi

Score एक्सटेंशन की मदद से आप LilyPond के ज़रिए PNG चित्रों के रूप में संगीत स्कोर्स को रेंडर कर सकते हैं, और उन्हें ऑडियो और MIDI फ़ाइलों में भी बदल सकते हैं।

श्रेय

 * मूल को Johannes E. Schindelin द्वारा लिखा गया था।
 * यह एक्सटेंशन Tim Starling द्वारा के एक कोड निरीक्षण पर आधारित है।
 * मूल को River Tarnell द्वारा लिखा गया था।

उपयोग
सेटअप के बाद आप अपने विकिटेक्स्ट पर  टैग की मदद से साधारण LilyPond नोटेशन एम्बेड कर सकते हैं। उदाहरणस्वरूप:

का अंजाम होगा:

आप साधारण रूप में score टैग्स को एट्रीब्यूट्स भी प्रदान कर सकते हैं

.

उदाहरणस्वरूप:

का अंजाम होगा:

निम्नलिखित एट्रीब्यूट्स उपलब्ध हैं:

The LilyPond language
Lyrics may be added like this:

For advanced users, the command can be used to change the MIDI instrument for the sound.

पूर्व अपेक्षित गुण
The following packages are recommended:


 * LilyPond
 * Ghostscript
 * ImageMagick
 * FluidSynth
 * Firejail

This extension uses LilyPond to render score images, so you need a working LilyPond installation (Special:Version displays the LilyPond version). If you install LilyPond from a package, Ghostscript will also be installed, since LilyPond depends on Ghostscript. ImageMagick should be installed to trim the images, otherwise they will contain an excessive amount of whitespace.

For security reasons, it is highly recommended to install firejail to further restrict what LilyPond and Ghostscript can do if untrusted users are allowed to edit your wiki.

The extension is also capable of creating audio files from the MIDI files generated by LilyPond. If you want to make use of this functionality, you need to have installed.

FluidSynth is the preferred method to convert MIDI files to audio files, however TiMidity++ is also supported.

Security concerns
Score uses LilyPond in safe mode, however there are known unfixed safe mode escape vulnerabilities leading to arbitrary execution.

If you don't absolutely trust everyone who has editing privileges on your wiki, it is strongly recommended to set up containment of lilypond using. See Shellbox#Server setup for details on how to set up the contained server, and below for configuring MediaWiki to use it. Also, ensure you're using a recent version of LilyPond (2.22.0+) or a distribution package (e.g. from Debian) that has security fixes. Keep safe mode enabled, even with containment as an extra layer of defense. Certain functionality will not work in safe mode, the fix for that is to modify LilyPond to allow that functionality in safe mode.

Installation

 * See the extension's  for detailed installation instructions.

विन्यास
Here are some of the extension's global configuration parameters.

$wgScoreLilyPond
Set  to the path to your LilyPond executable (typically   or  ).

$wgScoreTrim
The  is a boolean which defaults to the value of. If, the resulting score PNG images are trimmed with ImageMagick. If you don't want trimming, or don't want to install ImageMagick, set  to.

$wgScoreAbc2Ly
Set  to the path of your ABC to LilyPond converter executable (typically   or  ).

$wgScoreFluidsynth
Set  to the path of your Fluidsynth executable (typically   or  ).

$wgScoreSoundfont
Set  to the path of your soundfont file (typically   or  ).

$wgScoreLame
Set  to the path of your Lame executable (typically   or  ). Required if the generated audio file should be a MP3.

Remarks
This extension runs various binaries in a Shellbox to provide some security. You may have to increase if you get "out of memory" errors.



जाँच - परिणाम
Pages with scores on them will have the "score" page property set. Using Special:PagesWithProp, you can find pages that have scores. ([//en.wikipedia.org/wiki/Special:PagesWithProp?propname=score&propname-other= Example query for the English Wikipedia].)



यह भी देखें

 * Help:Score on English Wikipedia and Help:Sheet music on Wikisource have more examples of LilyPond syntax.
 * Vexflow Open source SVG/Canvas music renderer
 * LilyPond notation
 * ABC notation
 * vexflow github repository