those situations are pretty tough... but not impossible.
I know a few sober musicians.
There are many 'out there' as well - look to Rollins and Waits and others who've decided to go it sober.
That said - I don't think I'd put myself into hard-partying situations in early sobriety..... and now, 500 days into it, even still I tend to avoid those situations. Less because of any concern for my sobriety than because I just really don't enjoy those settings anymore.
It's funny.... "partying" doesn't seem at all like a party when you decide to look at it with sober eyes.