Most performing groups will have a designated dress code for performances. I don't know whether you are male or female, but generally men are expected to wear tuxedos for a formal orchestra or wind ensemble concert. Females (I'm not really a good person to ask about this one for obvious reasons) are generally asked to wear black and that ends up being either a black dress or pant suit; at least that's what I've seen. But, the dress for ensembles is whatever they tell you to wear.
For solo performances where I am on a stage with (or without) an accompanist, as in a recital, I normally wear a tuxedo. If it's evening (after 6 p.m.), I'll usually wear white-tie; if not, black-tie.
If I'm a soloist in a church setting, normally I just wear a suit/tie. If I'm where I can't be seen (like in a back choir loft surrounded by a choir), I'll play without my jacket.
For recording, it can generally be whatever you want. Nobody really cares what you wear for that. But if it's your first time in a studio, or with a particular group, it might be best not to be too shabby