Ableton Live 9 displays the MIDI note of each of the pads on the Drum Rack in the status bar when hovering the mouse over it. For the Kit-Core 808 Drum Rack instrument for example, the ‘Kick 808’ maps to the C1 note, the ‘Clap 808’ to D#1 note.
I mapped the pads (bank A/B) of my Akai MPK Mk2 mini MIDI controller to the midi notes shows in the Ableton Drum Rack.
For some reason when pressing the pads, they were off by 1 octave. Triggering pads that were not visible and had no sounds loaded on them.
Drag the ‘+ 12.adv’ MIDI Effect from the ‘Pitch’ category onto the section just in front of the Drum Rack, so it will transpose the incoming midi notes by +1 octave (12 semitones).
Generate a map of the UK showing the general election voting distribution of 2005, 2010 and 2015. Exising election result maps did not really show the subtlety in voting, this is due to the first-past-the-post voting system (winner-takes-all).
I used these Creative Commons images from Wikipedia as a base. The image format is SVG, which is an XML formatted vector graphics image. This allows for programatic access to the image description data.
Read in and Writing to a Map of the UK in SVG
As the SVG image format is XML, we can use the standard XML tools in Java, in this case DOM + XPath.
A number of constituency changes were made before 2010 – meaning that not all 2005 data could be applied to the 2015 UK constituency map. The 2005 UK constituency map did not have the required meta data to link the data to the SVG image, so I included a lookup file using the table data on the 2005 UK constituency map page.
Pixels represent the party colour and appear in frequency proportional to the votes.
I also used it to parse the data from the Guardian website. You create a plain Java object (POJO) with a default constructor, that represents the data. In this case I had to specify a date format, as the source JSON used a format different from the default.