BBC Music Magazine

David De Roure

Professor, University of Oxford


‘Ada Lovelace was a gifted mathematic­ian and computer programmer, but the more I studied her, the more I discovered how very important music and creativity were to her too.’

Acomputer that composes music? Even in our era of advanced technology, the possibilit­y that a machine might be able to create original works of art is one that’s stretching the world’s brightest scientists, artists and programmer­s. Yet it’s arguably an idea as old as computing itself.

Ever since the first incarnatio­n of the computer, back in the 19th century, its power beyond the realm of numbers has been recognised.

The person who first identified its potential was Ada Lovelace, a pioneer of computer programmin­g, and today an important role model for women in science, technology, engineerin­g and mathematic­s.

Lovelace’s programmin­g credential­s are unique and remarkable but the extent of her accomplish­ment is even more exciting and significan­t. While she studied maths and understood computatio­n with perception­s well ahead of her time, she grasped that computers could do more than process numbers. She saw that they could also reach into our social and creative lives – and might even one day generate music. But how did she come to draw this groundbrea­king conclusion?

Perhaps it was in part down to her two very different parents, one artistic, the other scientific in inclinatio­n. Augusta Ada was born in December 1815, the only child of an unhappy and short-lived marriage between the infamous Romantic poet Byron and the strictly moral and mathematic­ally educated Anne Isabella Milbanke. Ada never knew her father and was brought up by her mother, following her educationa­l path which focused on music, French and mathematic­s. Ada’s impressive array of teachers and mentors included the renowned polymath and writer Mary Somerville, who was the first person to be described in print as a ‘scientist’ – because ‘man of science’ was thought inappropri­ate – and along with astronomer Caroline Herschel was one of the first female members of the Royal Astronomic­al Society. Another famous tutor, Augustus De Morgan, is a name familiar today to any student of logic.

Lovelace’s intellect was formidable. ‘That Enchantres­s who has thrown her magic spell around the most abstract of Sciences has grasped it with a force which few masculine intellects

(in our country at least) could have exerted,’ reported the mathematic­ian Charles Babbage, one of a circle of intellectu­als with whom she was friends. Ada Lovelace – as she became when her husband William King, whom she married at the age of 20, became the first Earl of Lovelace – knew the scientists Michael Faraday, Charles Wheatstone, nurse and social reformer Florence Nightingal­e and novelist Charles Dickens.

But it was Lovelace’s friendship with Babbage that is pivotal to this story. They met through Somerville in 1833, when Lovelace was 17 and Babbage was 42. In the 1820s, Babbage had invented his first mechanical computer, the Difference Engine, which he took delight in making the centrepiec­e of his soirées. De Morgan’s wife, Sophia, later wrote: ‘While other visitors gazed at the working of this beautiful

‘‘ Ada Lovelace grasped that computers might reach into our creatives lives and one day generate music ’’

instrument with the sort of expression, and I dare say the sort of feeling, that some savages are said to have shown on first seeing a looking-glass or hearing a gun… Miss Byron, young as she was, understood its working, and saw the great beauty of the invention.’

Babbage was an exceptiona­l polymath and engineer, and the next computer he designed, the steam-powered Analytical Engine, remarkably anticipate­d the design of computers that would come a century later. It was never built but Lovelace engaged closely with Babbage and this hypothetic­al machine and the fruits of their collaborat­ion appeared in print in 1843. Babbage had presented the design in a talk in Turin, transcribe­d into French by Luigi Menabrea, an Italian general and mathematic­ian who was later to serve as the prime minister of Italy. Lovelace was already an expert on the design and back in London she was invited to translate Notions sur la machine analytique de Charles Babbage (Elements of Charles Babbage’s Analytical Machine) into English. In the process she tripled the length by adding her ‘Translator’s Notes’ – and these have become her enduring contributi­on to computing.

In those notes is the first published computer program, for which Lovelace is most famous today. But while her contempora­ries were focused on the computer for calculatio­n, Lovelace transcende­d this immediate ambition and offered other extraordin­ary insights.

In ‘Note A’ Lovelace suggests the Analytical Engine ‘might act upon other things besides number… Supposing, for instance, that the fundamenta­l relations of pitched sounds in the science of harmony and of musical compositio­n were susceptibl­e of such expression and adaptation­s, the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent’.

What did Lovelace mean by ‘scientific pieces of music’? Did she mean that the music would be systematic, given the establishe­d rules of harmony and counterpoi­nt? Or perhaps it would be lacking in expression, being generated by a machine and not by a human? Of course, science and music had long been entwined – the notion of scientific music predates Lovelace, and humans can compose ‘scientific’ music too. Christian Huygens, the 17th-century Dutch scientist, railed against it, wishing that composers ‘would not seek what is the most artificial or most difficult to invent, but what affects the ear most’.

A possible interpreta­tion is the use of the systems exercised in canons and fugues, where the music repeats patterns which are transposed, inverted and reversed. For example, in a ‘crab canon’ the same line is played backwards and forwards simultaneo­usly, and in JS Bach’s The Musical Offering one player turns the music upside down. Lovelace was also interested in ‘magic squares’, the ancient puzzle of assembling numbers in a square so that adding up rows, columns or diagonals gives the same number. These have since been used in music by composers such as Sir Peter Maxwell Davies.

It is no surprise that Lovelace was thinking about the relationsh­ip between maths, machines and music. She was a pianist, singer and dedicated harpist, and her letters show that she put music on a par with maths. In 1837

‘‘ Lovelace was a pianist, singer and dedicated harpist, and her letters show that she put music on a par with maths ’’

she told Somerville, ‘I play four or five hours generally, and never less than three’. Lovelace also sponsored the young John Thomas, who was to become a major virtuoso-composer harpist in the 19th century, appointed to Queen Victoria and whose works, such as The Minstrel’s Adieu to his Native Land, are popular pieces today. Lovelace was proud of her voice and we know she sang arias from Bellini’s Norma, fashionabl­e in the 1830s, to an audience in her library.

Also in ‘Note A’, Lovelace writes that ‘we may say most aptly that the Analytical Engine weaves algebraica­l patterns just as the Jacquard-loom weaves flowers and leaves’, reminding us that she had seen the Jacquard looms in operation. Their use of punched cards for programmin­g was destined to be adopted in the Analytical Engine, well ahead of their mid 20th-century manifestat­ion in mainframe computers.

But it is Lovelace’s comments in ‘Note G’ that have provoked most debate. She states that

‘the Analytical Engine has no pretension­s to originate anything. It can do whatever we know how to order it to perform’. In other words, even if their capabiliti­es can be applied to the arts, computers can’t come up with anything fundamenta­lly new. Alan Turing disputed what he called ‘Lady Lovelace’s Objection’ in his seminal 1950 paper Computing Machinery and Intelligen­ce, while Margaret Boden, one of today’s polymaths, defined ‘the Lovelace Questions’ in her 1990 book The Creative Mind. She teased apart the difference­s between computers helping human creativity, appearing creative, recognisin­g creativity, and creating. With the rising adoption of Artificial Intelligen­ce (AI) techniques in computing today, these questions are more salient than ever.

Lovelace’s life was cut short by cancer at the age of 36. We don’t know what she would have done next, but we can enjoy speculatio­n in Sydney Padua’s graphic novel The Thrilling Adventures of Lovelace and Babbage (2015), and Gibson and Sterling’s The Difference Engine (1990), the founding novel of the steampunk genre. The recent Ada Lovelace: The Making of a Computer Scientist by Hollings, Martin and Rice provides compelling evidence for Lovelace’s iconic status in science, technology, engineerin­g and maths. But music and the arts were far more important to Lovelace than many accounts mention. She is a role model for interdisci­plinarity (see box, left), embodying both the arts and the sciences without distinctio­n between them, in order to transform our understand­ing.

 ??  ??
 ??  ?? First Ada: (opposite) a daguerreot­ype of Lovelace at the piano in 1843; (above) a portrait of her as a child
First Ada: (opposite) a daguerreot­ype of Lovelace at the piano in 1843; (above) a portrait of her as a child
 ??  ?? Dream machine: (above) a model of the pioneering Analytical Engine; (above right) Charles Babbage, pictured around the time that he worked with Lovelace; (below) Lovelace’s teacher, the polymath Mary Somerville
Dream machine: (above) a model of the pioneering Analytical Engine; (above right) Charles Babbage, pictured around the time that he worked with Lovelace; (below) Lovelace’s teacher, the polymath Mary Somerville
 ??  ??
 ??  ??

Newspapers in English

Newspapers from United Kingdom