The stable learning of temporal patterns with an adaptive resonance circuit