Thursday, June 21, 2012

A Child of the Snows: progress update

It's getting there.  This week I have made several important 'links' between sub-sections and revised them accordingly as well as working toward the very end.  It's becoming increasingly clear to me that one of the most important skills for a composer is being able to leave things out or cast them aside.  Berlioz sums this up exactly: 'it is wonderfully easy to compose, but it is so hard to let the crumbs fall under the table'.  One writes bars that sound fantastic on their own but cannot be integrated into the work without compromising it.  Mostly this is due to misdirection or tautology. One example stands out in the last few days' work.  I'd written a very tense climax in part of the cantata where the Field poem talks of Calvary, with the 'French Overture' dotted rhythms to the fore, but however I tried to tweak it, it somehow didn't seem right - the potential seemed to be being hampered by something. I must have played around with different notes for half an hour and abandoned it to work on another passage before later on the solution became apparent - chop something out. Lo and behold, when I played it back I could see immediately what was wrong: two bars were both providing exactly the same function and by 'stepping back down the mountain' in this way were destroying the tension leading to the full outburst. With two bars removed the orchestra now bursts out of the choir's peak to rush downwards in near-unison and into a winding-down passage introducing the next verse.  Solved.

More of the orchestral accompaniment is getting written too. I had a slight reality-check when I made an experimental passage of piano reduction and realised that I've put a somewhat greater degree of both counterpoint and dissonance into the parts than I'd anticipated.  It's not a problem as such; I just surprised myself given that I'd always intended this to piece be on the conservative side stylistically.

It's about now that I also start getting into strange mind games about the finished article. Will it work? - will it be too difficult? - will there be bars I hate but can't see any other way of doing? - does it all sound coherent? One starts analysing the work trying to find positive points as if one is preparing a defence of a thesis: look, here's a chord combining two motifs, here's an interesting bit of counterpoint, that verse is just the right length, isn't it? Often a thought that turns away excessive self-criticism is that I am still in the early stages of my output, there will be other, greater pieces to come, so don't worry too much if this one isn't a consulate masterpiece. But still, try to make it good. But don't try and do everything in it at once, there will be other opportunities.

Anyway, I think I'm still on course to finish the cantata by the end of the next month. Just the last few lines of text to go, the introduction, the solo and some linking passages to go now. Oh, and work out how to end it...

Sunday, June 3, 2012

Wallpapering

I tend to change my PC's desktop background (known colloquially as 'wallpaper') about every month. Almost always the image is a picture I've snapped on a recent trip, having got into the habit of trying to take a shot or two that contains a large area of the same colour suitable for displaying icons and a calender on top of. However, recently I had the nice idea to create a series of Great Composer wallpapers which could be easily made from 'found' objects on the internet (a la Berio) and knocked up in an hour or two using fairly simple tools in a graphics programme. Here I'm going to show you how it's done, should you wish to copy the concept yourself or just are curious.

The basic idea consists of using a portrait of the composer, their signature and a suitable excerpt of their music. All of these objects could be found from open-source websites, chiefly Wikipedia and IMSLP, and then with a little bit of experimentation arranged to fill the screen space. Depending on the images used and direction the portrait faces, there is scope for some variation with the composition.  The program I used for the project was Paint.NET, a free open-source raster graphics program that was initially developed by Microsoft as a replacement for the standard Windows Paint but then dropped and left in the hands of a community of internet users. It would be an excellent program even if it were payware - it does nearly everything that Photoshop or Coral Draw will, although if you want vector graphics you'll have to get the equally excellent Inkscape. The reason for not using this instead (vector graphics, should you be curious, are a system whereby the pixels become infinitely small as you zoom in and so images don't get blurred) is partly that file sizes will be much larger and that I have a much greater level of proficiency on Paint.NET. Also, it has a number of plugins included that we will be using for this project.

Setting up/Portrait:

The first stage is to set up the canvas for the wallpaper.  As I'm creating this background for a standard 17" flatscreen monitor, I will be using a resolution of 1024x468 pixels, so I create a new document in Paint.NET and alter the canvas size to these dimensions (choose Image - Canvas Size).  (If you are unsure how big your screen is, right click on your desktop, choose 'Properties' and look at the 'Settings' tab. There will be a slider half-way down which will show your current resolution - most likely this is already at 1024x468).  The next thing is to choose a subject for our wallpaper. The composer I settled on was Haydn: definitely one of the 'greats'; and with several portraits to choose from available in high-resolution. As we need to show both the portrait and some music, I intended to divide the space about half-and-half. This also means that when our background is 'in situ', desktop icons can all fit over one side or the other depending on what offers the best contrast and visibility. A little searching on Wikipedia Commons brought me to the Thomas Hardy portrait which I copied and pasted into Paint, and then resized to fit just the head into the frame.

At this point we need to introduce a new concept which is one of the best features of Paint.NET and similar programs: layers. In ordinary MS Paint, everything is on the same layer and only one colour can be displayed as 'on top'. If you draw over something, it disappears. Cut an area out and you cut down to the background. But with Paint.NET, we can have multiple layers of a drawing superimposed on top of each other. This means you can draw a background and then create another layer (or several) on top, on which you can draw, move, cut, paste and alter anything without affecting the layer(s) below or above.  We're going to exploit this feature in making our wallpaper.

The Haydn portrait I've just copy-pasted will sit on top of a background layer, which we'll create in a minute. What we need to do first is to 'cut out' his head so we can add a background to avoid an untidy difference between the square portrait and the rest of the screen (I experimented with stretching the painting's background to fill the space, and the result was some way from satisfactory).  There is no easy way of doing this other than to get out the eraser tool and carefully go round the edge of the wig and features with a small tip size. My tip is to release the mouse frequently; this means if you make a mistake and have to hit 'undo' you'll only lose a small amount of correct erasing.

The result of somewhat painstaking work with the Eraser tool.
I decided to leave 'Papa' Haydn's hand and pen in, as it makes a nice touch and would have looked a little odd otherwise.  I have also left in the painted background behind him as this serves our purpose quite well already.  Once all this is complete, I name the layer 'Portrait' or something similar for clarity (select the layer and choose 'Layer Properties' from the small menu at the bottom of the Layers window) and save. We're not quite finished with this layer yet, but for now let's move on to creating the background.

Background:

Create a new layer from the window and name it 'Background'. Then - and this is important - move it down using the arrows to below the portrait layer we already have. Anything we draw in this new layer will be visible only where the portrait layer is transparent - the chequered space in the screenshot above. (This is possible due to the file having something called an 'alpha layer', but we don't need to worry too much about the workings of this for our current project).  Rather than a single colour background, I wanted something slightly mottled that matched the oil paint of the portrait. To get this, in the background layer I stretched a rectangle over the entire canvas (make sure it's set to 'Draw filled shape' at the top when the polygon tool is selected) and then in the visible area scribbled a load of wiggles over it in green, brown and tan.  Making sure only this background layer was selected, I then used the Gaussian Blur tool (Effects-Blurs-Gaussian Blur) on this layer in two separate passes, turning up the blur radius until the wiggles were very subtle. I also ran the 'Oil Painting' effect on this layer, although I'm not sure how much difference this actually made after all the blurring.  The finished effect is very subtle but looks much more classy than a plain colour.


The next thing to do is to return to the portrait layer and run another plugin from the Blurs tab called 'Feather'. It may appear at first glance that this has done nothing, but look again at the edges with the background layer displayed. They will have been blurred outwards a little, removing the 'hard' join between layers. We're done with the portrait layer now.

Music:

Create another new layer and name it 'Music'. It needs to be moved down between the two existing layers - it will be on top of the background but beneath the portrait. At this point I needed to choose a suitable excerpt form the literature to represent the composer. I settled on a passage almost immediately - The Heavens are Telling from The Creation, which is possibly his most famous and masterly work.  I decided just to use the vocal lines rather than including the orchestral accompaniment, but this is a personal judgement.  The staves can be captured by taking a screen shot of the vocal score from IMSLP and pasting it into a new document. To get the music to sit on top of the background we're going to need to cut out all the spaces. Trim using the 'Crop to selection' tool and then get to work with the Magic Wand tool to remove anything that isn't ink. The Wand selects any area bounded by the same colour and will allow us to erase the 'holes' between ledger lines and notes far neater than we could ever do by hand.  Again, there is no quick way of doing this: we're going to have to just keep clicking until all the white on the page is removed and we can see the chequers of the alpha layer.

Having done this, there was one little addition I wanted to make: the score only showed the words in English, and I rather wanted to have the German text as well. Apart from personal satisfaction and an acknowledgement of Haydn's nationality, this would also better make the staves fill the space. The German text was copied from another score and then typed in Paint.NET using the text tool, getting the font as close as possible to the existing type. I also put it into italics just to be on the safe side. Unfortunately the program's text editor does not not seem to have any provision for special characters, so to get the umlauts in 'erzählen' and 'Hände' I had to manually draw pairs of dots and position them over the letters. They've come out rather faint but they're there. I also had to move the existing staves to fit the new lines of text in. This was done by moving all the text to a new drawing, then very carefully selecting each part with the lasso tool and copy-pasting it into a new layer.  I then moved this selection up a few pixels and copy-pasted the German text (already aligned with the notes) into the layer before manoeuvring the whole lot in position so it was aligned above the rest of the staves. This was done separately for each voice until I had four layers which could be merged back into one (we'll cover merging at the end). The only problem that now remained was to fill in the gaps in the stave brace: this was done by selecting the existing area and stretching it over the gap from each side like elastic. Done!

Having added the additional text, the lines of the staves were manoeuvred back into position.

As the wallpaper has a dark background we need a light image on top. To do this for the music I selected the image and used the 'Invert colours' tool to turn the black to white, then copy-pasted the whole lot back over to the 'Music' layer of the original file. I also reduced the transparency of this layer a little and added a very slight blur to avoid the harsh contrast created by sharp pure white. It serves as a sort of 'semi-background' and also seems to match the colour of Haydn's wig...


The result is very satisfactory. I enlarged the layer and moved it across to position the music tucked slightly behind the portrait - again personal taste.  The inclusion of the line 'The wonder of his work/displays the firmament' seems particularly fitting, and I would like to think this could be seen as alluding to the mastery of Haydn's music as well as the creation text. All that remains now is to place Haydn's signature and dates in a new 'Text' layer. The signature (there are two different Haydn signatures, I chose the one with his initials in) was found on IMSLP and adapted in much the same way as the music: white background cut out using Magic Wand, then the colours inverted and moved into position at the bottom left on Joe's shoulder . The name and dates were done in Paint.NET's own text tool and positioned top right.

Finishing:

The final stage is to make this into a usable picture file by flattening it. If we've been saving our work regularly, as wise precautions advise, the default file type will be one with a .pdn extension. This is Paint.NET's own file format, one which supports the layering we've been using. However, we can't use a file like this as a normal picture because no other program can actually display a Paint. NET file with layers, so we need to change it into a .png, .jpeg, .gif or similar format.  To do so, we need to merge all the layers together into one. Paint.NET makes this easy for us by including a 'Merge layers down' tool in the Layers window, but first we need to double-check what goes on top of what and move them up or down if necessary. The order of layers in the window should be Text- Portrait- Music-Background. Starting with the top layer, hit the 'Merge down' button and the two layers will combine into one. When you've finished, the drawing will be a single-layer image that can be saved in any picture format. I would recommend using a png or a jpeg to keep the file size down, but check the quality is turned up to maximum. I saved it as 'Haydn desktop'.

All that remains is to navigate to the new file, right-click and choose 'Set as Desktop Background'. Give the cogs a moment or two to whirr and you should have Haydn sitting as your background screen.
The finished article in use.

A few concluding thoughts:

  • This concept is highly versatile as long as one has a portrait image and another work example to use. It could easily be adapted for any figure or object of history. As mentioned, there is scope for variation of the basic idea: the portrait could be bigger, smaller, face the other way, the signature could be elsewhere, different fonts, etc.
  • Oil paintings will probably produce a more satisfactory result than colour photographs, as they are easier to merge with other colours and avoid overly sharp edges when cut around.
  • Using a fairly dark colour scheme seems to have worked well with the bright icons and calendar that sit on top of it. All are still legible and easy to locate, one of the design principles of desktop wallpaper.
  • Be aware that with a system tray at the bottom of the screen, some of the image will be obscured. Luckily, this doesn't seem to create any adverse effect in this case.
  • The next one of these will probably be Mozart. I plan to offer these as free downloads from this blog once I have a small collection.