As with most alkaloids, the harmalas are in the plant tissue mostly or exclusively as some sort of salts. Boiling them extracts them and vinegar helps improve extraction efficacy.
You now have an impure solution of salts.
Adding base freebases them and you obtain the alkaloid base precipitate.
Dissolving this in vinegar converts them to the alkaloid acetate.
When salt (sodium chloride) is added, due to harmine/harmaline hydrochlorides low solubility in water combined with the salting-out effect of excess salt, the harmala acetates are converted to harmala hydrochlorides (and some sodium acetate is formed).
The hydrochlorides then crystallize out as needles or crystalline fluff, depending on conditions.
Once isolated and removed from the excess salt the hydrochlorides have a somewhat improved solubility in water and can be dissolved in warm water, giving a memorable flavor.