A conic pendulum of variable length analysed by wavelets