In Damien Chazelle’s new film “Whiplash,” the very idea of jazz is turned into a grotesque and ludicrous caricature. Photograph by Daniel McFadden / Sony Pictures Classics / Everett

Movies about musicians offer musical approximations that usually satisfy in inverse proportion to a viewer’s devotion to the actual music behind the story. Few, if any, fictionalized musicians are played onscreen by real-life musicians of their calibre. (Dexter Gordon, in “’Round Midnight,” is perhaps the best; Jackie McLean and Freddie Redd, in “The Connection,” don’t do as much acting, but their music is brilliant.) Most good music in movies is played by musicians playing themselves, whether it’s Little Richard in “The Girl Can’t Help It,” Louis Armstrong and Lionel Hampton in “A Song Is Born,” the Rolling Stones in “Sympathy for the Devil,” or Artur Rubinstein in “Carnegie Hall.” Yet I’m not bothered by musical approximations and allusions in dramas, as long as the drama itself has the spirit of music. The mediocre jazz in Damien Chazelle’s new film, “Whiplash,” the story (set in the present day) of a young drummer (Miles Teller) under the brutal tutelage of a conservatory professor (J. K. Simmons), isn’t itself a problem. The problem is with the underlying idea. The movie’s very idea of jazz is a grotesque and ludicrous caricature.

Teller is a terrific actor, and he does a creditable job of playing the protagonist, Andrew Neiman, who’s nineteen and idolizes Buddy Rich. (Buddy Rich? A loud and insensitive technical whiz, a TV personality, not a major jazz inspiration. As I heard his name in the film, I spoke it in my head as dubiously as Leonardo DiCaprio says “Benihana” in “The Wolf of Wall Street.”) Teller is a student at New York’s fictional Shaffer Conservatory, where he catches the attention of Terence Fletcher (Simmons), the authoritarian leader of the school’s concert band and an ostensible career maker. The core of the movie is the emotional and physical brutality that Fletcher metes out to Andrew, in the interest (he claims) of driving him out of self-satisfaction and into hard work. Fletcher levels an ethnic slur at Andrew, who’s Jewish; he insults his father, smacks him in the face repeatedly to teach him rhythm, hazes him with petty rules that are meant to teach military-style obedience rather than musical intelligence.

Fletcher justifies his behavior with repeated reference to a long-repeated anecdote about Charlie Parker, who, while still an unknown youth, was playing a solo at a jam session with professionals—one of whom was the great drummer Jo Jones, of the Count Basie Orchestra, more or less the inventor of classic jazz drumming, and even of the four-four glide that persists as the music’s essential pulse. In Fletcher’s telling, Parker played so badly that Jones threw a cymbal at his head, nearly decapitating him. After that humiliation and intimidation, Parker went home and practiced so long and so hard that he came back a year later and made history with his solo.

Here’s the real story, as related in Stanley Crouch’s recent biography of Parker, “Kansas City Lightning.” Crouch spoke with the bassist Gene Ramey, who was there. It happened in 1936, and Parker (whose nickname was Bird) was sixteen:

“Bird had gotten up there and got his meter turned around,” Ramey remembered. “When they got to the end of the thirty-two-bar chorus, he was in the second bar on that next chorus. Somehow or other he got ahead of himself or something. He had the right meter. He was with the groove all right, but he was probably anxious to make it. Anyway, he couldn’t get off. Jo Jones hit the bell corners—ding. Bird kept playing. Ding. Ding. Everybody was looking, and people were starting to say, ‘Get this cat off of here.’ Ding! So finally, finally, Jo Jones pulled off the cymbal and said ‘DING’_ _on the floor. Some would call it a crash, and they were right, a DING trying to pass itself as under a crash. Bird jumped, you know, and it startled him and he eased out of the solo. Everybody was screaming and laughing. The whole place.

Not attempted murder but rather musical snark; a humiliation but not an oppression. (By the way, Crouch himself has been a professional musician, an excellent drummer in the free-jazz manner—I had the pleasure of seeing him perform around 1976. His book joins an extraordinary depth of research and a profound understanding of the inner life of the music with a vivid depiction of life in Kansas City in the nineteen-thirties.)

Crouch adds that, at around this same time, Parker “had a breakthrough,” a musical epiphany that resulted from listening to the solos of the Kansas City-based tenor saxophonist Lester Young (who, later in 1936, joined Basie’s band). Parker found a steady gig with a local band, with whom he performed onstage for many hours every night. Crouch writes that Parker also got serious about music, studying harmony at the piano and spending lots of time listening to other musicians on the radio, including the trumpeter Roy Eldridge and the alto saxophonist Buster Smith. And, yes, Parker did play a historic solo a year later. He showed up at another jam session, in 1937, and, as the trumpeter Oliver Todd told Crouch, “Before the thing was over, all the guys that had rejected him were sitting down with their mouths wide open. I had seen a miracle. I really had. It was something that made tears come down my face.”