Time compression or expansion by changing speed using thinning out or insertion of a waveform characterised by the interconnection of waveforms