"Duet" is the seventeenth episode of the third season of The CW television series The Flash, which aired on March 21, 2017. The episode was written by Aaron Helbing and Todd Helbing from a story by Greg Berlanti and Andrew Kreisberg, and was directed by Dermott Daniel Downs. The episode features a musical crossover with Supergirl and reunites Grant Gustin and Melissa Benoist with their former Glee co-star Darren Criss, who portrays the Music Meister. Jesse L. Martin also reunites with Jeremy Jordan, with whom he previously worked in the 2012 musical film Joyful Noise. The story begins at the end of the Supergirl episode "Star-Crossed", which aired on March 20, 2017, which saw Kara Danvers / Supergirl (Benoist) hypnotized into a coma by Music Meister, with Mon-El (Chris Wood) and J'onn J'onzz / Martian Manhunter (David Harewood) bringing her to Earth-1 in hope that Team Flash can save her.

Plot

J'onn J'onzz and Mon-El of Earth-38 arrive on Earth-1 with a comatose Kara Danvers, in hope that Barry Allen and his team can revive her. They warn Barry that the escaped prisoner, Music Meister, claimed he would be coming for him too. Meister attacks and places Barry in a similar coma. Barry wakes up to find himself without his powers in a musical dreamworld where he discovers Kara singing in a nightclub ("Moon River") and where everyone resembles people they know in the real world. Meister tells Kara and Barry that if they follow the script, they will return to the real world. He warns them, however, that if they die in this world, they die in real life ("Put a Little Love in Your Heart").

Duet (The Flash)

Barry and Kara are forced to work as singers in a nightclub run by gangster Cutter Moran. Cutter's rivals Digsy Foss and his husband have their men kidnap Barry and Kara and tell them to find their daughter, Millie Foss, whom they believe is being held hostage by Cutter. Barry and Kara find Millie in a forbidden relationship with Cutter's son, Tommy Moran. They convince the pair to reveal their love, which helps Barry and Kara to realize their own mistakes. Digsy, his husband and Cutter seemingly give their approval ("More I Cannot Wish You"), but subsequently decide to go to war. Meanwhile, in the real world, Meister is revealed to have been stealing Barry and Kara's powers, using them to rob a bank. Cisco Ramon, Wally West and J'onn arrive to fight Meister. They defeat him and lock him up in a S.T.A.R. Labs cell.

Duet (The Flash)

Back in the musical reality, Barry and Kara prepare to sing an original song to appease Cutter ("Super Friend"), but the gang war begins outside. Barry and Kara are shot in the crossfire and are dying, but Cisco, Mon-El and Iris vibe into their world to save them, allowing Barry and Kara to admit their love for Iris and Mon-El respectively. They wake up in S.T.A.R. Labs. Meister escapes his cell, revealing to Barry and Kara that he just wanted them to realize their love before leaving. Kara, J'onn and Mon-El return to Earth-38 and Barry and Iris move back in together. Barry serenades and re-proposes to Iris, who accepts ("Runnin' Home to You").

Duet (The Flash)

Production

Casting

Main cast members Grant Gustin, Candice Patton, Danielle Panabaker, Carlos Valdes, Keiynan Lonsdale, Tom Cavanagh, and Jesse L. Martin star as Barry Allen / Flash, Iris West, Caitlin Snow, Cisco Ramon / Vibe, Wally West / Kid Flash, Harrison "H.R." Wells, and Joe West, respectively. In January 2017, Darren Criss was cast as Music Meister. Additionally, the episode's guest cast includes Melissa Benoist as Kara Danvers / Supergirl, David Harewood as J'onn J'onzz / Martian Manhunter and Chris Wood as Mon-El, reprising their roles from Supergirl, along with Legends of Tomorrow actor Victor Garber, Supergirl actor Jeremy Jordan and John Barrowman from Arrow and Legends of Tomorrow playing different roles.

Filming

Filming of the episode occurred from February 1 until February 15, 2017, and was directed by series veteran Dermott Daniel Downs.