Relationship between amplitude and sampling rate I'm loading a signal with librosa in python. With the original sample rate of 22050 Hz, i get the following waveplot:

When i choose to resample my signal with the sample rate of 512 Hz, i get the following waveplot:

My question is, how come the amplitude is less with 512 Hz than with 22050 Hz? I assume that since the interval at which we record the amplitude is larger at 512Hz, the values should be larger too.
In order to resample without aliasing, the resampling process needs to apply an anti aliasing filter at the new Nyquist Frequency (or thereabouts). So chances are, your resampling process applied a low pass filter at 256 Hz or so and that removed A LOT of the energy.