Re: [LAD] Identify Peek in Drum Samples

From: Paul Davis <paul@email-addr-hidden>
Date: Mon Dec 20 2010 - 16:49:57 EET

On Mon, Dec 20, 2010 at 4:27 AM, Oliver Jaun <olijaun@email-addr-hidden> 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
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Dec 20 20:15:01 2010

This archive was generated by hypermail 2.1.8 : Mon Dec 20 2010 - 20:15:02 EET