[LAD] Writing a library?

Anders Dahnielson anders at dahnielson.com
Wed Jul 23 16:20:07 UTC 2008


On Wed, Jul 23, 2008 at 15:25, Julien Claassen <julien at c-lab.de> wrote:

> Hi!
>   Paul: As I understood the sfz format is text-based. I didn't take a look.
> But depending on what it looks like, a parser generator might be good
> advice.
>   If the SFZ is an xml variant libxml might be better suited.
>   Kindest regards
>          Julien
>

Here's what a snippet from a SFZ file looks like:

[BEGIN SFZ]

/////////////////////////////////////////////////////////////////////////////
// Region Name: NOTE E_

<region>
sample=E_1.wav
key=52
lovel=111 hivel=127

<region>
sample=E_2.wav
key=52
lovel=86 hivel=110

<region>
sample=E_3.wav
key=52
lovel=71 hivel=85

<region>
sample=E_4.wav
key=52
lovel=0 hivel=70


/////////////////////////////////////////////////////////////////////////////
// Region Name: NOTE F_

<region>
sample=F_1.wav
key=53
lovel=111 hivel=127

<region>
sample=F_2.wav
key=53
lovel=86 hivel=110

<region>
sample=F_3.wav
key=53
lovel=71 hivel=85

<region>
sample=F_4.wav
key=53
lovel=0 hivel=70

[END SFZ]

-- 
Anders Dahnielson
<anders at dahnielson.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20080723/2b39524d/attachment.html>


More information about the Linux-audio-dev mailing list