Devarim / Deuteronomy 16:15 · Sod
שִׁבְעַת יָמִים תָּחֹג לַיהוָה אֱלֹהֶיךָ בַּמָּקוֹם אֲשֶׁר־יִבְחַר יְהוָה כִּי יְבָרֶכְךָ יְהוָה אֱלֹהֶיךָ בְּכֹל תְּבוּאָתְךָ וּבְכֹל מַעֲשֵׂה יָדֶיךָ וְהָיִיתָ אַךְ שָׂמֵחַ׃
Seven days you shall keep the festival to the Eternal your Almighty in the place that the Eternal will choose, for the Eternal your Almighty will bless you in all your yield and in all the work of your hands, and you shall be altogether joyful.
Sod סוֹד
Joy refined by awe
There is joy one is ashamed of afterwards. There is joy that leaves one purer. The Sefat Emet reads the difference between them in the word "only".
Sefat Emet: joy can spread and come to casting off the yoke, so it says "only" (אַךְ), a word of limiting. As gold is cleaned of rust, so joy must be only for the sake of Heaven, without dross. And אַךְ has the numerical value 21: twenty-one days from Rosh HaShanah to Shemini Atzeret. Joy that came through the awe of these days is pure and clear: "I rejoiced out of my awe".
How Sefat Emet explain it
Sefat Emet And you shall be altogether joyful
Because joy can spread and come to casting off the yoke, Heaven forbid. So "only" (אַךְ) is said of it, a word of limiting. And our sages of blessed memory said: "Only (אַךְ) the gold" (Bamidbar / Numbers 31:22) — its rust must be removed. So too "only joyful": that the joy be only for the sake of Heaven, without dross. And in truth "only" excludes the nations, as it is said: "And in its joy no stranger shares" (Mishlei / Proverbs 14:10). And see what is written further on.
Sefat Emet And you shall be altogether joyful, to include the night of the last festival day
For through the twenty-one (כ״א) days from Rosh HaShanah to Shemini Atzeret the joy has now been refined. As it says in Tanna DeVei Eliyahu: "I rejoiced out of my awe" and so on. For the joy that comes through awe is pure and clear. And "only" (אַךְ) is a word of refining, like "only the gold": to remove the rust and so on.
And "you shall be" (וְהָיִיתָ) is from "I was broken (נִהְיֵיתִי) and was sick" (Daniel 8:27): this joy comes through the judgements that passed in the preceding twenty-one (א״ך) days. And all was so that the day of Shemini Atzeret be refined for good in concealment, as it is said: "at the covered moon (בַּכֵּסֶה), for the day of our festival" (Tehillim / Psalms 81:4). And understand.
Takeaway
Numerical value of letters: אַךְ = א 1 + ך 20 = 21. From Rosh HaShanah, the first of Tishrei, to the eve of Shemini Atzeret, the twenty-second of Tishrei, are twenty-one days. The Sefat Emet calls them days of judgement through which joy is refined.
"Only the gold" (אַךְ אֶת הַזָּהָב, Bamidbar / Numbers 31:22) is about vessels purified by fire. The sages learn from the word אַךְ that first the rust is removed. The Sefat Emet carries this over to joy.
וְהָיִיתָ ("you shall be") and נִהְיֵיתִי ("I was broken") from the book of Daniel share one root. Hence the lesson: the joy of Shemini Atzeret grew out of the effort and awe of the days before.
Rosh on this page sees in אַךְ the twenty-one days of Hallel, and the Sefat Emet the twenty-one days from Rosh HaShanah. One number, one lesson: joy one has come to.