[LAD] Identify Peek in Drum Samples

Paul Davis paul at linuxaudiosystems.com
Mon Dec 20 14:49:57 UTC 2010


On Mon, Dec 20, 2010 at 4:27 AM, Oliver Jaun <olijaun at yahoo.com> wrote:
> Hello
>
> I bought the natural drum samples (http://www.naturaldrum.com/). It contains
> WAVs and presets for Kontakt and Halion. Now I'd like to create some
> gigasampler files in order to use it with linuxsampler.
>
> The documentation of the natural drum sample library is quite good. The only
> thing missing is the "loudness" of each sample in order to map each sample
> to a velocity level from 0-127.
>
> What would you  recommend in order to calculate the "peek" of each drum
> sample automatically? Is there a library which could do this? I would also
> be happy with a command line tool like this:
>
> $ peek bla.wav
> Peek value: 12345

sndfile-info /music/misc/onewayjam_organ.ogg

Version : libsndfile-1.0.20

========================================
File : /music/misc/onewayjam_organ.ogg
Length : 3939068
Vorbis library version : Xiph.Org libVorbis 1.3.1

Bitstream is 2 channel, 44100 Hz
Encoded by: Xiph.Org libVorbis I 20020717
End

----------------------------------------
Sample Rate : 44100
Frames      : 18924456
Channels    : 2
Format      : 0x00200060
Sections    : 1
Seekable    : TRUE
Duration    : 00:07:09.126
Signal Max  : 0.805912 (-92.18 dB)    <<<<<<<<< HEADS UP!

Works for any audio fle that libsndfile can read, which is just about anything.

there is a complication: loudness is no identical to maximum sample
value, but the relationship is good enough for government work, so to
speak.

--p



More information about the Linux-audio-dev mailing list