Master of the Lamps

It was released for the Amstrad CPC, Apple II, Atari 8-bit computers, Commodore 64, and MSX.

The death of an Arabian prince's father, the king, shatters three enchanted oil lamps, freeing the three genies trapped within.

In practice, this requires the player to direct the carpet over diamond-shaped gates as they appear; failure to do so returns the prince to the beginning of the tunnel.

[2] In the seven dens of the first genie, each tone is audible, and manifests as a colored quaver (eighth note) that floats toward the ground.

Antic in 1986 called Master of the Lamps an "offbeat game program with a number of unique elements".

Gameplay screenshot (Atari 8-bit)