Music & Tech & Posts by José Luis Miralles

AI_fred Cortot: An Claude artifact that helps study fast passages on the piano

In a previous blog entry, we analyzed Claude’s ability to understand Lilypond code and even to invent music and technical exercises for that music, with relative success. However, the technical exercises it created, despite showing some intuition, were not useful.

In this entry, we are going to present a Claude Artifact that already knows the typical transformations used for studying fast passages where speed and evenness of notes are required. The artifact is constantly being updated, so if you want to save access to it, it is recommended to bookmark this page and access it via the following link (which will always lead to the latest version) rather than using the direct link to the artifact. You can wait a bit, keep reading to learn how it works, or try your luck and access it directly.

go to artifact!

To illustrate how it works, we will use a simple example (from the first Hanon exercise).

A few preliminary considerations

The purpose of the artifact is to create a series of transformations on an original piece of music to help students study that fragment more effectively. It is common, especially among piano teachers, to have a repertoire of “transformations” of the musical text that one wants to study in order to achieve technical improvements that optimize the final performance. Alfred Cortot is a well-known musician and pedagogue who elevated this process to high levels of precision and thoroughness.

When presented with a fragment of music (written in Lilypond code), the artifact is able to extract the notes and apply a series of processes. Currently, the implemented processes are:

In future updates to the artifact, other transformation techniques are expected to be implemented. If anyone would like to suggest any, they can leave their ideas in the comments.

Once the desired transformations are applied, the Lilypond code is returned, which can be used in a Lilypond reader and viewed as a musical score.

Claude’s artifact only understands Lilypond code, so the only challenge is obtaining the desired fragment in that format.

  • If the fragment is short, it may be worth learning to write directly in Lilypond.
  • If you have the score in musicMXL (a format readable by Musescore), Lilypond’s Frescobaldi interface can import that file, allowing you to obtain the code.
  • If the score is in PDF format, you can try using Musescore’s scanning feature to obtain the musicMXL.
  • If you have the file in MIDI format, Lilypond can also import it.

For the artifact to function properly, it’s best to provide the Lilypond code with only the music you want to transform (preferably in a single staff).

Once you have the code in Lilypond, you can use the note extraction feature to isolate the part of the code you want to transform, or you can directly provide the sequence of notes.

After selecting the transformations, they are presented again as note sequences. If you’re familiar with the Lilypond language, you can re-insert them into your complete text. Alternatively, you can use the function to reconstruct the entire score, which will then present you with a complete Lilypond code to use.

The final code with the exercises can be viewed in Lilypond or Hacklily.

Here’s a short video of Claude creating the artifact in its preliminary versions:

Example with Hanon

We start with the Lilypond code for the first three measures of the first Hanon exercise.

It is a simple example in which we can clearly identify the sequence of notes:

In the artifact, we can either input all the code at the beginning (recommended if we want the artifact to return the complete score code) or simply the sequence in the second box (recommended if we understand what we are doing and are only interested in the transformed sequences to place them ourselves in the complete score code).

Once that’s done, we can choose the transformations we want to generate.

For example, for the binary rhythms transformation, it generates this sequence of notes:

We can easily replace this sequence with the original one in Lilypond and we would get a new score with just that sequence. But if we want more, or if we’re not comfortable copying separate parts of the code, there’s another option.

For the latter, we choose the option to rebuild the code, and the complete code can be copied directly into Lilypond.

With this code generated by the artifact, we will obtain the following in Lilypond:

Video of the process:

Next Post

Leave a Reply

© 2024 BEYOND THE PIANO