Extension:Myriad

Myriad Music plug-in lets you view, play, print, zoom, transpose tunes created with Harmony Assistant and Melody Assistant.

I've created this extension to add musical scores on my wiki.

I know there are some people working on Lilypond for Wikipedia. But Myriad music plug-in works differently.

Consider it works like Macromedia Flash : you have a file, need an external program, need a special tag.
 * 1) You create your score with Harmony Assistant, or import a MusicXML. Extension is .myr, .mus or .mu3.
 * 2) Upload it like an image.
 * 3) Myriad extension writes the object / embed to display the score.

On google we can find a flash extension for Mediawiki but it uses external .swf files, not uploaded ! Easy... :-)

On a programming side, it was a bit harder, but really interesting, you can copy it and modify to fit your need for other plug-ins (Extension:Flash now done - I didn't tested it -, Extension:Scorch...)

Tag : filename.myr|options The filename.myr is an uploaded one, or a link to an external file, on another website.

Contribution : Iubito 20:54, 21 May 2005 (UTC)

What is Harmony Assistant ?
Harmony Assistant is a commercial software for computer-assisted music composition and editing, with powerful harmonizing capabilities.

For me, its most unbeatable feature is the quality of the sound, instead of MIDI, Harmony Assistant uses a digital sound bank.

The one packaged in the downloadable plug-in is very tiny and lowest quality : about 600 KB. The biggest and best one, is sold on CD-Rom and called "Gold". A medium quality 6MB sound bank is downloadable at http://www.myriad-online.com/en/resources/extbase.htm

Harmony Assistant imports MusicXML. Melody Assistant is a shareware, with less features.

Requisits
Requires : Platforms : Browsers : mostly all
 * Myriad Music plug-in installed on users' computers.
 * Windows 95 to XP
 * Mac OS8 to OSX
 * seems to work on Linux through Wine (tested by some users)
 * IE 4+
 * Netscape 4+
 * Mozilla
 * Opera
 * K-Meleon
 * ICab
 * Safari
 * Camino

Install instructions

 * 1) Include it at the end of your LocalSettings.php : include("extensions/myriad.php");
 * 2) add .myr, .mus and .mu3 in the extension list : $wgFileExtensions = array('png','gif',...,'myr','mus','mu3');

If you want to translate the 2 messages in your language, go to http://yoursite/wiki/index.php?title=MediaWiki:myriadbeforeplugin and ...?title=MediaWiki:myriadafterplugin. You can also change the default values for height and width in MediaWiki namespace or in the myriad.php file.

Sample
For a complete list of parameters between tags, see the Myriad Music Plug-In Web Designer manual examples : file.myr|width=210|height=300|autoplay=on

http://www.anothersite.com/accordion.myr Produces : This screen capture show a score in the plug-in, with one of the sentences I've translated in French in the Mediawiki namespace.

For a simple melody, or a 2-3 staves scores (piano, organ) you can zoom. The best parameter, for a 800x600 screen is : file.myr|width=550|height=400|zoomvalue=220 which produces :


 * Trgnala Rumjana.myr
 * Shalom Aleichem.myr

PHP code (copy from here!)
Copy/paste into your editor, save it to extentions/myriad.php, and then upload it to your site.