On Wed, Jul 23, 2008 at 15:25, Julien Claassen <julien@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@dahnielson.com>