Hi,
following the
docstring example, you should supply an onset detection function (ODF). This can be obtained by different means, e.g. by an RNN (
madmom.features.onsets.RNNOnsetProcessor), CNN (
madmom.features.onsets.CNNOnsetProcessor), or simple signal processing means (
madmom.features.onsets.SpectralOnsetProcessor).
The threshold parameter has no unit per se, it depends on which ODF you supply. In case of neural network based ODFs, these can be interpreted as probabilities. Thus the threshold parameter translates to "give me all onsets the network thinks it is an onset with at least this probability". For spectral based ODFs, you have to play around a bit. Please have a look in the /bin folder for example programs and their default settings for various parameters. These are usually a good starting point for experimentation.
If you pass in raw audio signal (which is possible), you could set fps to the signal rate of the signal. However, this is not intended and will not give satisfying results. You should at least square the signal after rescaling it to float values. madmom has also functions/classes to accomplish this, but as I said previously, this is most likely not what you want.
HTH