The Tur wrote that on Rosh Chodesh it is forbidden to deliver a funeral oration, as we learned (at the end of Moed Katan) that on Rosh Chodesh women may wail and clap. "Wailing" is when they all respond in unison, and "clapping" is palm against palm. But they may not lament, and after the deceased has been buried—they may neither wail nor clap. And "lamenting" is defined as when one woman speaks and all the others respond after her, see there. And there is room to doubt his intention: whether specifically after the burial it is forbidden to deliver a funeral oration, just as it says there that after the burial they may neither wail nor clap, but before the burial it is permitted. Or perhaps: even before the burial it is forbidden, for a funeral oration is similar to lamenting. And so it appears, because in a funeral oration the orator also speaks and arouses weeping—it is like lamenting. Our teacher, the Beit Yosef, did not mention anything regarding the case of a funeral oration. However, for a sage in his presence—it is certainly permitted, and it is also a mitzvah and an obligation. For even on Chol HaMoed they said there in the Gemara: there is no Moed in the presence of a Torah scholar, and all the more so on Rosh Chodesh.
כתב הטור דראש חודש אסור בהספד, דתנן (סוף מועד קטן) דבראש חודש נשים מענות ומטפחות. "מענות" הוא שכולן עונות כאחת, "ומטפחות" כף אל כף. אבל לא מקוננות, ואחר שנקבר המת – לא מענות ולא מטפחות. ו"מקוננות" מקרי מה שאחת אומרת, וכולן עונות אחריה, עיין שם. ויש להסתפק בכונתו: אם דוקא אחר הקבורה אסור בהספד, כמו בשם דאחר הקבורה – לא מענות ולא מטפחות, אבל קודם הקבורה מותר. או דילמא: אף קודם הקבורה – אסור, דהספד דמי למקוננות. וכן נראה, משום דבהספד גם כן הספדן אומר ומעורר לבכי – הוה כמקוננות. ורבינו הבית יוסף לא הזכיר כלום נדון הספד. מיהו לחכם בפניו – פשיטא דשרי, ומצוה וחובה נמי איכא. דאפילו בחול המועד אמרו שם בגמרא: אין מועד בפני תלמיד חכם, וכל שכן בראש חודש.