An amplitude-insensitive system that distinguishes pulses of different shapes