What about farting in church?
It depends on the loudness, olfactory quality, and whether you own up to it or not.
The louder, the more sinful.
The grosser the stench, the more sinful.
If you acknowledge your fart, you're okay. If you deny it, that's a venial sin. If you blame it on someone else, that's a mortal sin.