Dec. 11 (UPI) -- A Swedish musician spent six months working to accomplish the "worst" and "coolest" thing he has ever done: teaching an octopus to play piano.

Mattias Krantz, a YouTuber whose content usually revolves around musical instruments he modifies and plays, posted a video to the platform detailing how he taught an octopus, named Takoyaki, to play piano.

Krantz told The Washington Post that he bought Takoyaki, or Tako for short, from a Portuguese fishery in March, despite a scene in his video where he browses a Korean seafood market for a musical mollusk.

Krantz said it took time to earn Tako's trust, and longer still until he could entice the octopus into using the keyboard he designed with levers for the cephalopod to pull with his tentacles.

He said Tako started to plateau with only playing one or two notes at a time, using bubbles to interest him in the instrument, but a breakthrough came in August when Krantz installed a "crab elevator" in the tank. The device would lower a crab -- Tako's favorite treat -- a small amount in a tube for every note the octopus played.