New Tool Radar

AI Design Workflows

How to Check Musical Instruments in AI-Generated Images

Count the piano keys and guitar strings in an AI-generated image before you use it, because black keys can fall in the wrong pattern and strings can stop halfway down the neck.

Schematic diagram: three steps to check musical instruments in AI-generated images — count the keys, follow the strings, write it down — with a practice example showing piano black keys in groups of three, then one, then four.

Before you use an AI-generated image that shows a musical instrument, count the keys and follow the strings — because a generator can paint a convincing piano while scrambling the black-key pattern, and a convincing guitar while its strings stop halfway down the neck.

Why this needs its own check

The Generative Gazette, testing whether AI can draw a piano, writes that the keyboards it got back had groups of three black keys all in a row, followed by a lonely single one, then maybe four, then two, and that none of the generators it tried could do it — not DALL-E, not Midjourney, not Stable Diffusion. The pattern, the article says, should repeat, consistently, two black keys, a space, three black keys, a space, over and over, and it was scrambled.

The same problem reaches the strings: a guide to AI image failures notes that zooming into the finer details of an AI-generated image may still reveal inconsistencies or glitches, especially in areas like instrument strings. That is the problem this check fixes: an instrument is ruled by counts and patterns, not by looks. Adobe Firefly’s help page says you enter a detailed description in the Prompt field and select Generate to generate a set of image variations. Generating the stage is the easy part. Counting the keys is the work.

Make a list of what to check

For the practice image below, the fictional image is a Maple Corner live-music evening poster, from a fictional brief for a fictional cafe called Maple Corner, at the fictional address 12 Maple Lane. The brief asked for a piano and a guitar on a small stage, with a violin resting beside them. Check these six parts of the instruments:

  • Piano black keys
  • Piano white keys
  • Guitar strings
  • Guitar tuning pegs
  • Guitar frets
  • Violin bow

Check the image and write down what you find

Open the image large enough to see the smallest details. Go through your list one item at a time, and write down what you actually see — not what you expected to see. If a detail is too small or too blurred to judge, write “unreadable” and do not guess.

Practice instruments check: a fictional Maple Corner live-music evening

The cafe below is fictional. It was not generated by a tool for this guide; it is a practice set so you can see how the check works. The “As shown” column is the fictional image’s wording, not a real tool output.

Instrument to check What it should be As shown in the image Result
Piano black keys Groups of two, then three, repeating Groups of three, then one, then four Fail — black-key pattern scrambled
Piano white keys White keys even and level White keys even and level Pass
Guitar strings Six strings from bridge to tuning pegs Four strings, ending halfway down the neck Fail — strings stop mid-neck
Guitar tuning pegs Six pegs, three each side Six pegs, three each side Pass
Guitar frets Frets evenly spaced, closer together toward the body Frets uneven, some crossing the strings diagonally Fail — frets cross the strings
Violin bow Bow resting on the strings Bow floating beside the violin, touching nothing Fail — bow touches nothing

Only 2 of the 6 checks pass: the piano white keys and the guitar tuning pegs. The other 4 fail: a scrambled black-key pattern, guitar strings that stop mid-neck, frets crossing the strings, and a bow that touches nothing. Do not use an instruments image where the counts are wrong. Regenerate it, or use an image where the instruments are out of focus.

What to do when something is wrong

If the counts are wrong and the stage is right, do not try to fix it by naming the instrument again in a longer prompt: the pattern is a rule, and the generator paints by look, not by rule. The safest fix is to regenerate with the pattern written out — black keys in groups of two, then three, repeating; six guitar strings from bridge to tuning pegs — and check the new image the same way.

Expected result. We checked the Firefly generate images help page. We did not run Adobe Firefly on the Maple Corner live-music poster.

Limits

This check counts the keys, strings, frets, and pegs on instruments you can see. It does not check whether the instruments are the right ones for the music, whether a player holding an instrument holds it correctly, or whether an instrument that counts correctly sounds right — a still image cannot show that. It also does not fix the image: a Fail tells you the image is not ready, not how to repair it. Instrument rendering changes between models and over time, so a check that passes today does not guarantee the next image from the same tool will pass.

Sources

See all