Without revealing any details (since I scarcely know them), it has been suggested that Zelenka was clever enough to do this (in the Trio Sonatas, I think). This was put forward by a former Zelenka...