detonation is mainly caused by the timing being too advanced & bad/cheap gas but can also be caused by other things.
is the ecm throwing any codes? check engine light on?
on another note, you said it might be coming from around the shifter, do you still have the factory catted h-pipe...