I changed the values in the chunk (old values were MIDI Unity Note = 53, MIDI Pitch Fraction = 0xC6000000).MadGav wrote:The root note is defined by a couple of fields in the smpl chunk which you already support for the loop. This WAVE spec describes it, one DWORD for the MIDI note and a further DWORD as a fraction of a semitone above that. The values I needed to match tuning with the VAZ oscillators was:blacktomcat666 wrote:I have to add a further chunk which includes note data. That's not difficult,I have to find out the correct pitch settings and which chunk type can be used. Unfortunately I can't continue programming until tuesday, but I put your suggestion on top of the (very long) list.
MIDI Unity Note = 65
MIDI Pitch Fraction = 0.766 (3289944948 or 0xC4189374)
There is *also* an inst chunk mentioned in that spec (which VAZ doesn't support btw) defining another way to specify MIDI note and also some sample mapping parameters. I suppose some software will require this in addition to the smpl chunk.
Martin
New link: http://home.arcor.de/blacktomcat666/Komplex-Term.zip
Please tell me if this works better (or not).