Had a dirty job so they hired an alien
Showed up with my pipe, now the rats are gone
Drowned in the river, that's extermination
A character that is notable for having a flute or some other kind of wind instrument, playing tunes with it that give a feeling of mystery or magic, and for being quite mysterious themselves. Bonus points if this character is a representation of nature or has the power of mind control, summoning, or teleportation. The flute itself might be an Instrument of Murder, and the flutist might be a Musical Assassin, but not always.
A Snake Charmer is a subtrope. See also: Elemental Powers, Friend to All Living Things, Magic Music, Wandering Minstrel.
Examples:
- Inuyasha: Minor demon villain Ongokuki kidnaps Rin and several other children by hypnotising them with flute music.
- A Little Snow Fairy Sugar: The title character, using her flute to create snow.
- In Magi: Labyrinth of Magic, this is how Aladdin summons Ugo, and how Pisti can befriend animals.
- My-HiME: The mysterious white-cloaked HiME who uses a flute to control Yatagarasu, better known as the Face–Heel Turn-ed Shiho.
- Naruto: Tayuya is this and Musical Assassin. She can manipulate demonic dolls using it, as well as casting illusions.
- Radiant: Hameline, true to her namesake uses a special flute to command her Nemesis and use sorcery, also contains a hidden blade inside it.
- Sailor Moon: In the Makaiju arc, Ail uses his flute and his Magic Music to summon and control the monsters of the week.
- Shamanic Princess: Lena uses a flute to summon and manipulate a vine-like substance.
- Boonie Bears: In Season 2 episode 10, Tiki and later Logger Vick come across a flute that has a switch on it with two settings, a sun setting and a moon setting, and use it to their advantage, with the latter attempting to stop the bears with it. When played on the moon setting, the flute causes anyone in hearing range besides the person playing it to fall asleep; when played on the sun setting, it causes them to become feral and attack others.
- Motu Patlu (2012): In "Magical Flute", among the loot that John the Don's minions stole from a store is a magic flute that, when played, causes anybody within hearing range to do an Involuntary Dance. Naturally, John utilizes the flute in yet another of his villainous schemes.
- In episode 10 of Pleasant Goat and Big Big Wolf, Wolffy learns of a magic flute that is said to have been used to drive a rat infestation out of a wolf village a long time ago. Playing the flute causes all within hearing range to blindly follow whoever is playing the instrument, so Wolffy tries to use it to lure the goats to his place. As he learns near the end of the episode, however, the flute only mind-controls rats, not goats.
- The Courageous Princess: Irgerat usurped his brother's throne via a magic flute that turns out to be able to summon literally any magic effect the player wants. The protagonist, after using it to defeat him and the dragon pursuing her, ends up breaking it in half since it's too powerful an Infinity +1 Sword for anyone to possess.
- The Smurfs and the Magic Flute and its 2008 prequel The Flute Smurfers. See also the "Films — Animated" folder.
- In the Scandinavian fairy tale "Jesper who Herded the Hares" (and variants), the protagonist is given a magical instrument (usually a flute or pipe, sometimes a harmonica) to herd the king's hares.
- "The Nix in the Mill-Pond": On the second full moon, the wife uses a golden flute to play the most beautiful song she knows in order to rescue her husband from the nixie's pond.
- "The Pied Piper of Hamelin": The titular character is hired by the citizens of the German town of Hamelin to get rid of their rat plague problem by using his flute to hypnotize every rat in town and lead them into a river. However, the ungrateful townsfolk go back on the deal after the fact, so the pied piper returns and uses his flute to hypnotize their children as well, leading them out of town and into a cave which he then seals shut. Depending on the tone of the version being told, he'll either return the children after the people apologize to him or leaves them to die to teach their parents a lesson.
- In Dragon Ball Z: Wrath of the Dragon, Trunks befriends one of these. His name is Tapion, he plays a magical ocarina, and he has one half of a God of Evil sealed in his body.
- Mavka: The Forest Song: Lukash playing his flute isn't inherently magical, but it does have magical effects on Mavka.
- Omar, the Big Bad of Sahara, possesses a magic flute carved from the bones of an ancient snake deity. When he plays it, the music allows him to control snakes. He can use it to make them dance for his snake-charming performance, or keep them from escaping him (as demonstrated when Eva tries to leave). Later, Ajar steals the flute to keep it out of Omar's hands, and at some point, breaks it during a struggle.
- Shrek Forever After: The Pied Piper is a bounty hunter, his flute adjustable to whatever creature he wanted to hypnotize (in this case, ogres).
- The Smurfs and the Magic Flute: Peewit stumbles upon the magic flute of the Smurfs that makes whoever listens to it dance to its tune. It ends up in the possession of a thief named Matthew McCreep, who uses it to make people pass out from the dancing so he can rob them.
- 7 Faces of Dr. Lao: Pan uses his pipes on Angela as the audible equivalent of a Love Potion (though he ultimately points her towards her local would-be suitor rather than himself).
- The Dark Crystal: Jen's split flute comes in handy for identifying the true shard and in a bonding scene with fellow Gelfling Kira.
- Escape to Witch Mountain: Tony plays a harmonica to increase his telekinetic powers.
- Kill Bill: Bill plays a wooden flute, which lends to his mysteriousness.
- Live and Let Die: One of James Bond's opponents is a man who plays the role of the voodoo loa Baron Samedi. Bond once encounters him while he's playing a flute. After apparently being killed by venomous snakes, at the end he appears riding the front of a train, indicating that he may be the real Baron Samedi.
- The Magic Crane: Pak Wan-fai is frequently seen playing her bamboo flute, which is used to summon and control the titular magic crane.
- Willy Wonka & the Chocolate Factory: Mr. Wonka uses a flute key to summon the Oompa-Loompas when he needs to issue a command to them.
Examples by creator:
- In Robert Rankin's novels, mysterious guru's guru Hugo Rune has many titles, among which is the Reinventor of the Ocarina. It's revealed in The Book of Ultimate Truths that the reinvented ocarina allows travel to the Forbidden Zones.
Examples by work title:
- The Rat Piper in The Amazing Maurice and His Educated Rodents (the real one, not the stupid-looking kid) works very hard at maintaining this image. Maurice and Keith trade on his reputation.
- In the Bedlam's Bard series by Mercedes Lackey, the main character Eric Banyon is a Bard whose primary instrument is the flute.
- Cthulhu Mythos: The blind idiot god Azathoth enjoys himself some flute music, which would undoubtably be at least extremely unpleasant to human listeners. The sound of his flutists is what keeps him from waking up and destroying the universe.
- In the Elemental Masters series, Air Master Nigel Barrett uses a flute for such spells as summoning the sylphs. He started out with a metal one, but when it didn't feel quite right, he had a glassblower make him a glass one instead.
- The Elenium: A young girl, the Goddess Aphrael, who seemingly doesn't talk but does play the flute is named Flute by our heroes.
- In the Felix Castor series of novels, the titular character favored medium of channeling his ability to bind ghosts is by playing tunes on a tin whistle that reflects the ghost's nature.
- Grandmaster of Demonic Cultivation: Mo Dao Zu Shi has one for a narrator. His original flute, 'lingering sentiment' is replaced for most of the story by a quickly chopped, bamboo branch with shoddy holes and splinters he made in an emergency, and it doesn't slow him down at all. Not only does he call up the dead with whistles, claps, and commanded entire armies with his flute; but at one point, while lying low, he successfully rescues a very complicated piece of magic, harmonizing with someone else's work on strings, while deliberately playing just enough wrong notes to leave the hearers with the impression he's unskilled and lucky. Notable that even his emulators, of which he has several, haven't come close to understanding how he did what he did with music.
- The Piper of The Keys to the Kingdom, who is based on The Pied Piper of Hamelin, uses his pipes to control children and rats.
- The Lion, the Witch and the Wardrobe: The faun Mr. Tumnus (the first Narnian we meet) plays a flute lullaby to Lucy on her first trip to Narnia.
- Pact has Johannes Lillegard, a sorcerer who wields a set of pipes which are said to have originated with the original Pied Piper. He uses them to control rats, dogs, and the copies of children whose suffering he sells to supernatural creatures for power.
- Percy Jackson and the Olympians: Grover the Satyr often uses flutes (all versions of them, in fact) to cast nature-based spells. Among them include one that causes a Titan to assimilate into an enormous oak tree during the final battle with Kronos.
- Rachel Griffin: Rachel initially uses a flute to cast spells, as per the trope. However, it turns out that just whistling can do as well.
- The Saga of Darren Shan: The titular young vampire performs in a circus, controlling a giant spider with his flute.
- The Secrets of the Immortal Nicholas Flamel: Virginia Dare apparently plays her flute for a living. She also uses it to cast spells.
- At one point in This Immortal, the group of protagonists encounters some satyrs in the forest, prompting Conrad to produce shepherd's pipes out of nowhere and causing a dancing frenzy among the satyrs with his music. At the end of the book, Myshtigo theorises that Conrad may be the god Pan in disguise when recalling that incident.
- Edgar Pangborn's short story "Tiger Boy" might count. The eponymous youth plays a set of pan pipes, runs wild and naked, and has a fully-grown tiger as a companion. The pipes attract a mute teenage village boy to Tiger Boy's side (possible echoes of the Pied Piper). However, he's not actually magical — it's a feudal, post-holocaust world. (He's certainly not immortal either.)
- In The Treachery of Beautiful Things, playing the flute in the woods is what led to Tom's capture by The Fair Folk.
- Xanth: Chester Centaur's magical talent is to manifest and play a magical flute.
- Fraggle Rock: Cantus has a magical forked pipe. When he is first seen playing it in "The Minstrels", flowers start to open.
- Wonder Woman (1975): It's (evidently) not literally magic, but one episode's villain is a flute-playing rock star who can use his music to mind-control his female fans.
- Classical Mythology: The Greek god Pan could induce fear and panic with his pipes.
- Hindu Mythology: Krishna was one in his childhood.
- Native American Mythology: In myths from the US Southwest, Kokopelli is this, mixed with the fertility role, thus giving a new meaning to his flute.
- The Magnus Archives:
- The war poet Wifred Owen has an encounter on the battlefield with a strange being he calls the Piper.
- The title of the episode "Boatswain's Call" refers to the old-fashioned whistle the mate carries. The narrator soon learns that it's no ordinary call.
- Dungeons & Dragons: Satyrs have pipes that they can use to create magical effects.
- The iconic Pathfinder bard Lem wields a silver flute as his primary instrument and casts powerful magic with it.
- The Yu-Gi-Oh! spellcaster monster Mystic Piper
lets you draw a card and if it's a level 1 monster card an extra one, once.
- The Magic Flute, naturally, and there are also magic bells involved.
- Dynasty Warriors: Zhen Ji's primary weapon is a magic flute that she also uses to hit people over the head.
- Final Fantasy IX: Eiko, a White Mage and summoner, can use flutes as weapons.
- Fire Emblem: The Blazing Blade: The Wandering Minstrel Nils plays the flute, allowing one character to make an extra move, and later in the game, providing status buffs. By contrast, his older sister Ninian does the same with a Magic Dance.
- Illusion of Gaia: Will uses a flute both to play magical songs and as a blugeoning device.
- The Legend of Zelda: Link, although he himself is not very mysterious since he's the player-character. His instrument also varies from game to game: recorders, ocarinas, pan pipes, etc. Sometimes, though, such as in The Legend of Zelda: A Link to the Past, Link gets his flute from a character who plays this trope straight.
- Magia Record: Puella Magi Madoka Magica Side Story has Tsukasa and Tsukuyo Amane, a pair of twin MagicalGirls whose weapons are flutes. Tsukuyo specializes in attacking enemies with the sound from her flute, while Tsukasa uses the sound to amplify her physical attacks.
- Mushihime-sama: A mysterious girl who appears in the cutscenes of BUG PANIC! named Sora.
- NiGHTS into Dreams…: The eponymous character himself/herself plays the invisible flute.
- Nioh 2: The first DLC, Tengu's Disciple, focuses on Minamoto no Yoshitsune, the legendary Genji general who fought in the Genpei War, who also happens to be an ethereally pretty half-youkai Hanyō/Shiftling like Hide and a previous wielder of Sohayamaru. When he's not slaying youkai, he enjoys playing an ornate mystical flute that adds to his otherworldly aura.
- Ōkami: Waka is named after a form of Japanese poetry. His appearance is always announced by the sound of a flute, and he tells cryptic, yet accurate prophecies.
- Ōkamiden, the sequel to Ōkami above, has Kurow, who not only bears an uncanny resemblance to Waka, but in the same vain as him plays a flute. Fittingly, he is a doll copy of Waka, down to a similar weapon of choice.
- Onmyōji (2016):
- Ōtengu uses his flute to cast a hypnotic spell over unsuspecting yōkai.
- Mannen-dake is the only flutist in the game who actually uses the instrument as a weapon.
- Ravenswatch draws its characters from fairy tales (and more broadly the history of human fiction). The Pied Piper of Hamelin is a playable character, a Long-Range Fighter who applies Death of a Thousand Cuts via a constant barrage of flute notes (and the occasional music pun).
- Sheep, Dog 'n' Wolf: In level 4, you are given a magic flute to hypnotize Sam Sheepdog and lead him to a trap to stun him long enough for you to steal a sheep. It works so well that the item is immediately available again in level 5 and you are given the impression that because of the fact that Sam is standing guard at the entrance to his flock, you will need to hypnotize him just to get past him so you can work on luring away a sheep later on in the level. However, when you go to use it on him, you discover that he learned from the last level and got earplugs to protect himself. He punches you back to the start of the level and the flute disappears from your inventory and never appears again in the game.
- Super Mario Bros. 3: A magic whistle can be used to skip whole worlds.
- Trials of Mana: A magic flute summons a big goggles-wearing turtle at beaches.
- Wario Land 3: At one point, Wario must play on a flute to summon the Fire Snakes from their pots so they can be used as platforms.
- In Spirit Hunter: NG, Kakuya's presence is identifiable by the flute that she plays, which can be heard from a large distance by those that she's cursed. In contrast to the horrific hauntings that she inflicts on her victims, her flute's song is serene.
- The Adventures of Puss in Boots has the Piper Maliflua, who can control animals with her flute like the Pied Piper, but only one kind of animal at a time; she uses a different flute for each animal.
- The Garfield Show: "Rodent Rebellion" ends with Nermal herding the rodents that have overrun the town and luring them to the police by playing his flute. Nermal even brings up how this is similar to the story of the Pied Piper.
- Kaeloo: In Episode 132, Mr. Cat somehow gets hold of a magic flute and tries to use it to lead a bunch of sheep into a trap.
- A few Looney Tunes shorts have parodied "The Pied Piper of Hamelin":
- Porky Pig plays the Piper in a couple of cartoons. In one, he has to contend with a cat angry with him for ridding Hamelin of rats.
- In "The Pied Piper of Guadalupe", Sylvester the Cat tries to make a flute to capture Speedy Gonzales and friends. Also, Sylvester Jr. once finds that he can attract different animals by adding holes to the flute.
- In Miraculous Ladybug, Volpina uses her flute to conjure hyper-realistic illusions. The real holder of the Fox Miraculous, Rena Rouge (a.k.a. Alya), also has this power. According to Word of God, The Pied Piper of Hamelin was a previous holder of the Fox Miraculous.
- Mona the Vampire: "The Pied Piper" has a Mr. Piper become the school's substitute music teacher, with Mona and Charley's imagination interpreting him as an ogre who hypnotizes Lily, Angela, George and some nameless kids by playing his clarinet with the intention of eating them during the parade.
- The Pixie, Dixie and Mr. Jinks short "Pied Piper Pipe" has Mr. Jinks, inspired by the Pied Piper story, create a flute to torture the meeces with. They get back at him by placing a dog whistle in the flute so Jinks can get beaten up a nearby bulldog.
- Roberon from Robotman And Friends derives his magic powers from a flute he plays (despite the fact that he self-admittedly hates music and is weakened by it). It has been commented on many times that the tune he plays sounds an awful lot like the Spider-Man theme.
- Samurai Jack: The bounty hunter Scaramouche, as part of his Magic Music powers, can play a magical flute that allows him to create and control a giant golem out of surrounding stone rubble through telekinesis.
- The 1930 Screen Songs short "In the Good Old Summer Time" has a gag where a hippo's flue brings inanimate objects to life and follow him. Even a stereotypical Jewish pig's clothes fly off of him to follow the sound.
- In ThunderCats (2011), Wileykit can send people into a trance by playing a sort of ring-shaped ocarina.
- The Japanese shakuhachi is strongly associated with the Fuke sect of Zen Buddhism, who used the instrument as part of their meditative process. When the Meiji government cracked down on the previous bakufu and all associated religions, they specifically attacked the practice of playing the shakuhachi.

