Master of the Lamps
マスターオブザランプ - Japanese spelling
Alternating with this, you are in front of a row of pipes. Hit a gong 3 times to summon a genie, who will play a sequence of notes. Once the last one has been played, they fly towards you in order, and their colour equivalent on the row must be hit (the number of times they are played), before the flying note can hurt you. Complete this and a piece of lamp is granted.