0.3.4 Release: In Memorial of David Wong

March 23rd, 2010

A new bug fix release, well, actually not entirely bug fixes but contain improvements in ABC and Guido notation images. Due to previously inaccurate guessworks, Guido images look blurred while ABC images often have their widths exceeding user setting. The resizing and zooming are now more accurately calculated, so those problems should disappear.

Now for something special: this release is dedicated to David T. L. Wong, a seasoned free software developer in Hong Kong, also a respected and highly regarded member in local forums. Some of his major contribution to free software community include work in DMB-TH digital tv driver for linux kernel and an USENET client for Android. It was apparent that he was still posting to forums a few days ago, without apparent mentioning of any kind of problem. But all of a sudden, he’s gone. So far details are sparse, but many people are eager to help out — donation to his family members, helping in funeral and so on. There’s even a dedicated Facebook page!

Although I’m not familiar with him (no acquaintance, unlike some of my friends who do see him from time to time), wish him rest in peace and is well in heaven.

Workflow for MIDI support

March 13th, 2010
Image of ScoreRender 0.4 workflow

ScoreRender 0.4 workflow

Due to quite a few requests, MIDI support is starting to be implemented. Right now support for ABC notation, which makes use of abc2midi, seems to work fine, while support for Mup and PMW notation should be hard to do (they use the same program for rendering image and MIDI).

The most problematic one is Lilypond. It is not using any extra program or command line option for MIDI support, but adding a \midi{} block in input data instead before rendering. That means a special workflow for Lilypond MIDI support has to be designed, significantly different from support of any other notation.

Big changes coming

March 2nd, 2010

I’m working feverishly these days on the plugin, trying to push it out before it becomes forgotten in history. Perhaps when 0.4.0 is out, blog visitors won’t notice much (actually there would be almost no visual change if admin leave settings to default), but internally a major part of architecture is redone, some even rewritten twice.

Visual change

Now every fragment can be colored individually, unlike previous version where one can only choose black or white globally for all music fragments in the blog. Note that all fragments on this site are colored in navy blue.

Installation

WP 2.6 is required as minimum version, instead of 2.2. This allowed me to dump some old cruft which means less support headache. That’s not such a big deal, since every version before newest release unvariably contains security hole so that one would see recommendation to upgrade to newest everywhere. WordPress is notorious for its security track record (and plugins contribute a lot too); there’s a reason WordPress getting Pwnie Award.

Admin interface

  1. Cache URL setting is dropped completely.
  2. Temp directory and cache directory can be empty, which means using sys_get_temp_dir() and default WordPress upload folder respectively.
  3. Mup registration key content is used in place of registration file.
  4. The ‘Invert Image’ setting is dropped entirely, following the change in note coloring. Era of black and white is gone.
  5. Background translucency is unconditionally used as well. It’s better to let IE6 die ASAP (numerous parties are calling for or even killing IE6 outright), but with Twinhelix IE6 PNG fix those unfortunated few will not feel so disgraced upon visiting your blog.
  6. Incorporate jQuery Color Picker to pick note color. Finally I dropped jQuery Color Picker in favor of jscolor. Not only is jscolor much smaller in size (only 1/7 of jQuery one), the most important point is that jQuery Color Picker is very unresponsive — it requires DRAGGING in order to trigger a color change!

Content

  1. Using internal shortcode support from WP, ScoreRender now supports adding attribute to enclosing tags. Individual fragment color is one; more will come later.
  2. [score lang="..."] is preferred to using notation name directly as shortcode, which might be phased out later.

There are even more behind-the-scene changes as well. One can follow the changelog for a full list of changes.

0.3.3 Release

February 27th, 2010

Other than the license change, this release incorporates quite a few backports and fixes. The more visible ones include:

  • Change of license to AGPL v3.
  • Moving the ‘Show Source’ setting to Contents section in admin page.
  • A bug was discovered a few days ago, that notation without any program name was not deactivated correctly. Command line was still executed without the program name, which of course resulted in error. That behavior was fixed.
  • Yet another fix for Lilypond, because previous one was not quite correct. Now safe mode is re-enabled for all versions of lilypond.
  • Since I-don’t-know-when, ImageMagick can properly read bilevel (that is 1-bit) transparency from PostScript level 1, while it can’t before. This leads to a slight change in command line when invoking convert. Gotta create a code name called ‘curse ImageMagick’ (ok, kidding)

ScoreRender switches to AGPL

February 27th, 2010

ScoreRender will be moving from GPL to Affero GPL, which is asserted to be more suitable for running on network and web. While this is not a very big change, it gives me some excuse to cleanup license data and information. This change will be reflected in 0.3.3 and the upcoming 0.4.0 release.

0.3.2 Release: ‘LilyPond Sucks’

August 13th, 2009

Another bug fix version, and this is the first version ever with a code name — definitely an apt one. It only fixes command line invocation with LilyPond 2.12.x. So this fix need not be applied if lilypond is not used, or LilyPond inside server is not newer than 2.10.x release.

Why the name? I haven’t used LilyPond for a long while. Only very recently, after testing compatibility with newer WordPress release, did I discover that LilyPond safe mode command line option is completely gone, resulting in error! There IS a reason even Wikimedia people cast doubt about usage of LilyPond — notation syntax and command line can change between every minor release, and even EVERY PATCH LEVEL! In the case of safe mode option:

2.8.x --safe
2.10.x --safe-mode
2.12.x -dsafe No more

Go figure.


2010-02-26: OK, so the safe mode option in 2.12.x is there after all, I haven’t followed Lilypond development for a long while so don’t even notice that. It’s -dsafe now. Thus in 0.3.3 version safe mode is re-enabled. Sigh.

ScoreRender 0.3.1 Released

July 26th, 2009

Yet another new release is out. Some fixes are backported from trunk:

  • When showing image only (score is not clickable, that is), also add image dimension as well, for speeding up HTML rendering.
  • Fix line break when showing score source code under Windows — always convert line break to \r\n when transferring data to clipboard.
  • Better auto-detection of programs. Make use of glob() under Windows and which command under Unix, with fallback if these are not available.
  • Bug fix in program availability checking. If desired matching string is not found in the first line of program output, program detection would result in failure in previous versions.

Dashboard widget shall be gone

July 19th, 2009

In the coming (well, I can’t say exactly when “coming” is) release, i.e. 0.4.0, dashboard widget would be removed. It isn’t useful in current form, which just tells user how many images are there, and how many posts contain music score fragments. Actually one can already check number of images in the image cache directory. Perhaps it might come back some day in the future, but at least in more useful way, not in current form as it is.

Source code moved to Google Code

June 28th, 2009

Just finished the move a while ago, right now development version is available publicly from Google code page instead of my own private subversion repository. Probably it’s a rarely used plugin (and not exactly easy to install), so that there’s no bug entered; but I’m happy enough that some people are indeed interested in installing and using it.

ScoreRender 0.3.0 Released

April 30th, 2009

After 8 months, here comes another major release. Highlight of this shiny release include:

  • Philip’s Music Writer notation support.
  • IE PNG Fix has been incorporated, which provides translucent PNG support for IE 5.5 and 6.x. No more whining when this plugin detected that your readers are using IE 5/6. Thanks to Angus Turnbull for the terrific yet easy to use IE filter!
  • Zero Clipboard has been incorporated, which provides cross platform copy and paste function using Adobe Flash. No more whining again, but it’s Mozilla/Firefox and all other non-IE browsers instead. Oh yes, JavaScript and Flash must be there, of course. Thanks to jhuckaby for this great flash helper!
  • Better support of installation on web hostings. This has been described in another post.
  • Rendering also depends on ‘unfiltered_html‘ WordPress capability.
  • Functions and files are completely refactored, so admin page is only included when needed, and PHP classes no longer access global variables as it has been done before.

As usual, please visit installation page on how to install the plugin. You will need to install extra required programs for this plugin to function as well, and they are sometimes not as easy as installing the plugin itself. If you managed this part, you can visit notation introduction page to start publishing your blog with music content!