Recognising and separating signals in spectrograms