It was not precisely lip-synching, but pretty close.

The somber, elegiac tones before President Obama’s oath of office at the inauguration on Tuesday came from the instruments of Yo-Yo Ma, Itzhak Perlman and two colleagues. But what the millions on the Mall and watching on television heard was in fact a recording, made two days earlier by the quartet and matched tone for tone by the musicians playing along.

The players and the inauguration organizing committee said the arrangement was necessary because of the extreme cold and wind during Tuesday’s ceremony. The conditions raised the possibility of broken piano strings, cracked instruments and wacky intonation minutes before the president’s swearing in (which had problems of its own).

“Truly, weather just made it impossible,” Carole Florman, a spokeswoman for the Joint Congressional Committee on Inaugural Ceremonies, said on Thursday. “No one’s trying to fool anybody. This isn’t a matter of Milli Vanilli,” Ms. Florman added, referring to the pop band that was stripped of a 1989 Grammy because the duo did not sing on their album and lip-synched in concerts.

Ms. Florman said that the use of a recording was not disclosed beforehand but that the NBC producers handling the television pool were told of its likelihood the day before.