Michael Pineda took the loss as the Yankees fell to Detroit, 4-1, on Sunday at Yankee Stadium, but manager Joe Girardi was pleased with his performance.

Pineda gave up six hits and two earned runs in six innings, walking two and striking out eight. After giving up one hit through the first three innings, he got in a bases-loaded, none-out jam in the fourth but escaped with only one run allowed. In the fifth, he allowed another run after the first two batters got on base.

advertisement | advertise on newsday

“I thought he threw a good game,” Girardi said. “Four out of five he’s thrown well, so I think he’s getting on a roll. I liked what he did today. It’s unfortunate we didn’t score him any runs . . . He’s not leaving pitches up or over the middle of the plate. He’s done a much better job of expanding down in the zone with his slider, getting swings and misses.”

Pineda, who has allowed six earned runs in 18 2⁄3 innings in his past three starts for a 2.89 ERA, threw a clean sixth inning that pushed his pitch count to 114. “My slider the last couple starts is way better than the first couple months,” he said. “I’m a little more consistent with my slider and with my fastball location.”

n Extra bases

advertisement | advertise on newsday

The highlight of the Yankees’ 70th Old-Timers’ Day game came when Hideki Matsui slugged a two-run homer off David Cone into the second deck in rightfield . . . Bernie Williams, who has made the transition to a successful career as a jazz guitarist, said he recently graduated from the Manhattan School of Music with a degree in jazz performance. “Success is a very relative term in the sense of measuring it as opposed to baseball, where you have numbers that kind of tell you if you hit X amount of home runs or have X average,” Williams said. “In music, there’s no scores for bad notes played or bad arpeggios or broken strings or anything like that.” . . . Brett Gardner’s hitting streak ended at nine games.