Ticket Change Details
Not logged in
Overview

Artifact ID: 506dcd73b7b1f751768adfeb73d5ff749e81b2b6
Ticket: b0a9072ec3aea2bc6260ea80faf8f5d812d2d967
Generators in first local preset zone are copied to global preset zone
Date: 2014-11-23 00:34:39
User: bencollver
Changes

  1. Change icomment to:

    sfspec24.pdf

    Page 35

    41 instrument This is the index into the INST sub-chunk providing the instrument to be used for the current preset zone. A value of zero indicates the first instrument in the list. The value should never exceed two less than the size of the instrument list. The instrument enumerator is the terminal generator for PGEN zones. As such, it should only appear in the PGEN sub-chunk, and it must appear as the last generator enumerator in all but the global preset zone.

    Page 36

    53 sampleID This is the index into the SHDR sub-chunk providing the sample to be used for the current instrument zone. A value of zero indicates the first sample in the list. The value should never exceed two less than the size of the sample list. The sampleID enumerator is the terminal generator for IGEN zones. As such, it should only appear in the IGEN sub-chunk, and it must appear as the last generator enumerator in all but the global zone.

    hexdump -C guitars.sf2

    The phdr chunk follows: ... 009d8f40 00 00 4c 49 53 54 2a 22 00 00 70 64 74 61 70 68 |..LIST*"..pdtaph| 009d8f50 64 72 0a 01 00 00 4e 79 6c 6f 6e 20 53 74 72 69 |dr....Nylon Stri| 009d8f60 6e 67 20 47 75 69 74 61 72 00 18 00 00 00 00 00 |ng Guitar.......| 009d8f70 00 f0 68 1a 8b 00 3a 00 40 00 34 1a 53 74 65 65 |..h...:.@.4.Stee| 009d8f80 6c 20 53 74 72 69 6e 67 20 47 75 69 74 61 72 00 |l String Guitar.| 009d8f90 19 00 00 00 0a 00 84 00 36 00 01 00 00 20 84 00 |........6.... ..| 009d8fa0 12 00 43 6c 65 61 6e 20 47 75 69 74 61 72 00 00 |..Clean Guitar..| 009d8fb0 00 00 00 00 00 00 1b 00 00 00 14 00 00 00 00 00 |................| 009d8fc0 00 00 00 00 00 00 58 04 4a 61 7a 7a 20 47 75 69 |......X.Jazz Gui| 009d8fd0 74 61 72 00 00 00 00 00 00 00 00 00 1a 00 00 00 |tar.............| 009d8fe0 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 4f 76 |..............Ov| 009d8ff0 65 72 64 72 69 76 65 20 47 75 69 74 61 72 00 00 |erdrive Guitar..| 009d9000 00 00 1d 00 00 00 28 00 00 00 00 00 00 00 00 00 |......(.........| 009d9010 00 00 00 00 44 69 73 74 6f 72 74 69 6f 6e 20 47 |....Distortion G| 009d9020 75 69 74 61 72 00 00 00 1e 00 00 00 32 00 00 00 |uitar.......2...| 009d9030 00 00 00 00 00 00 00 00 00 00 45 4f 50 00 00 00 |..........EOP...| 009d9040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 009d9050 00 00 3c 00 00 00 00 00 00 00 00 00 00 00 00 00 |..<.............| ...

    The Jazz Guitar preset data from the phdr chunk above: AchName=Jazz Guitar WPreset=1a (26) WBank=0 WBagNdx=1e (30) DwLibrary=0 DwGenre=0 DwMorphology=0

    The pbag chunk follows: ... 009d9060 70 62 61 67 f4 00 00 00 00 00 00 00 01 00 00 00 |pbag............| 009d9070 04 00 00 00 08 00 00 00 0c 00 00 00 10 00 00 00 |................| 009d9080 14 00 00 00 18 00 00 00 1c 00 00 00 20 00 00 00 |............ ...| 009d9090 24 00 00 00 25 00 00 00 28 00 00 00 2b 00 00 00 |$...%...(...+...| 009d90a0 2e 00 00 00 31 00 00 00 34 00 00 00 37 00 00 00 |....1...4...7...| 009d90b0 3a 00 00 00 3d 00 00 00 40 00 00 00 42 00 00 00 |:...=...@...B...| 009d90c0 44 00 00 00 46 00 00 00 48 00 00 00 4a 00 00 00 |D...F...H...J...| 009d90d0 4c 00 00 00 4e 00 00 00 50 00 00 00 52 00 00 00 |L...N...P...R...| 009d90e0 54 00 00 00 56 00 00 00 5a 00 00 00 5e 00 00 00 |T...V...Z...^...| 009d90f0 62 00 00 00 66 00 00 00 6a 00 00 00 6e 00 00 00 |b...f...j...n...| 009d9100 72 00 00 00 76 00 00 00 7a 00 00 00 7b 00 00 00 |r...v...z...{...| 009d9110 7e 00 00 00 81 00 00 00 84 00 00 00 87 00 00 00 |~...............| 009d9120 8a 00 00 00 8d 00 00 00 90 00 00 00 93 00 00 00 |................| 009d9130 96 00 00 00 97 00 00 00 9a 00 00 00 9d 00 00 00 |................| 009d9140 a0 00 00 00 a3 00 00 00 a6 00 00 00 a9 00 00 00 |................| 009d9150 ac 00 00 00 af 00 00 00 b2 00 00 00 70 6d 6f 64 |............pmod| ...

    The Jazz Guitar pbag data from above: pbag 30 (from Jazz Guitar wBagNdx) wGenNdx=54 (84) wModNdx=0

    pbag 31 (End of preset, beginning of next preset) wGenNdx=56 (86) wModNdx=0

    The pgen chunk follows: ... 009d9160 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 70 67 |..............pg| 009d9170 65 6e cc 02 00 00 10 00 64 00 2c 00 79 7f 26 00 |en......d.,.y.&.| 009d9180 3c 01 29 00 00 00 2c 00 71 78 08 00 4a ff 26 00 |<.)...,.qx..J.&.| 009d9190 a5 00 29 00 00 00 2c 00 69 70 08 00 7e fe 26 00 |..)...,.ip..~.&.| 009d91a0 00 00 29 00 00 00 2c 00 61 68 08 00 7e fd 26 00 |..)...,.ah..~.&.| 009d91b0 4a ff 29 00 00 00 2c 00 59 60 08 00 6f fc 26 00 |J.)...,.Y`..o.&.| 009d91c0 7e fe 29 00 00 00 2c 00 51 58 08 00 50 fb 26 00 |~.)...,.QX..P.&.| 009d91d0 97 fd 29 00 00 00 2c 00 49 50 08 00 ce f9 26 00 |..)...,.IP....&.| 009d91e0 8c fc 29 00 00 00 2c 00 41 48 08 00 a1 f7 26 00 |..)...,.AH....&.| 009d91f0 50 fb 29 00 00 00 2c 00 00 40 08 00 1e f5 26 00 |P.)...,..@....&.| 009d9200 ce f9 29 00 00 00 10 00 64 00 2c 00 79 7f 26 00 |..).....d.,.y.&.| 009d9210 00 00 29 00 01 00 2c 00 71 78 26 00 4a ff 29 00 |..)...,.qx&.J.).| 009d9220 01 00 2c 00 69 70 26 00 7e fe 29 00 01 00 2c 00 |..,.ip&.~.)...,.| 009d9230 61 68 26 00 7e fd 29 00 01 00 2c 00 59 60 26 00 |ah&.~.)...,.Y`&.| 009d9240 6f fc 29 00 01 00 2c 00 51 58 26 00 50 fb 29 00 |o.)...,.QX&.P.).| 009d9250 01 00 2c 00 49 50 26 00 ce f9 29 00 01 00 2c 00 |..,.IP&...)...,.| 009d9260 41 48 26 00 a1 f7 29 00 01 00 2c 00 00 40 26 00 |AH&...)...,..@&.| 009d9270 1e f5 29 00 01 00 10 00 64 00 26 00 dc f7 2c 00 |..).....d.&...,.| 009d9280 79 7f 29 00 02 00 2c 00 71 78 29 00 02 00 2c 00 |y.)...,.qx)...,.| 009d9290 69 70 29 00 02 00 2c 00 61 68 29 00 02 00 2c 00 |ip)...,.ah)...,.| 009d92a0 59 60 29 00 02 00 2c 00 51 58 29 00 02 00 2c 00 |Y`)...,.QX)...,.| 009d92b0 49 50 29 00 02 00 2c 00 41 48 29 00 02 00 2c 00 |IP)...,.AH)...,.| 009d92c0 00 40 29 00 02 00 10 00 1e 00 30 00 28 00 2c 00 |.@).......0.(.,.| 009d92d0 79 7f 08 00 4a ff 26 00 3c 01 29 00 03 00 2c 00 |y...J.&.<.)...,.| 009d92e0 71 78 08 00 7e fe 26 00 a5 00 29 00 03 00 2c 00 |qx..~.&...)...,.| 009d92f0 69 70 08 00 97 fd 26 00 00 00 29 00 03 00 2c 00 |ip....&...)...,.| 009d9300 61 68 08 00 8c fc 26 00 4a ff 29 00 03 00 2c 00 |ah....&.J.)...,.| 009d9310 59 60 08 00 50 fb 26 00 7e fe 29 00 03 00 2c 00 |Y`..P.&.~.)...,.| 009d9320 51 58 08 00 ce f9 26 00 97 fd 29 00 03 00 2c 00 |QX....&...)...,.| 009d9330 49 50 08 00 dc f7 26 00 8c fc 29 00 03 00 2c 00 |IP....&...)...,.| 009d9340 41 48 08 00 1e f5 26 00 50 fb 29 00 03 00 2c 00 |AH....&.P.)...,.| 009d9350 00 40 08 00 6e f0 26 00 ce f9 29 00 03 00 10 00 |.@..n.&...).....| 009d9360 64 00 2c 00 79 7f 26 00 3c 01 29 00 04 00 2c 00 |d.,.y.&.<.)...,.| 009d9370 71 78 26 00 a5 00 29 00 04 00 2c 00 69 70 26 00 |qx&...)...,.ip&.| 009d9380 00 00 29 00 04 00 2c 00 61 68 26 00 4a ff 29 00 |..)...,.ah&.J.).| 009d9390 04 00 2c 00 59 60 26 00 7e fe 29 00 04 00 2c 00 |..,.Y`&.~.)...,.| 009d93a0 51 58 26 00 97 fd 29 00 04 00 2c 00 49 50 26 00 |QX&...)...,.IP&.| 009d93b0 8c fc 29 00 04 00 2c 00 41 48 26 00 50 fb 29 00 |..)...,.AH&.P.).| 009d93c0 04 00 2c 00 00 40 26 00 ce f9 29 00 04 00 10 00 |..,..@&...).....| 009d93d0 64 00 2c 00 79 7f 26 00 3c 01 29 00 05 00 2c 00 |d.,.y.&.<.)...,.| 009d93e0 71 78 26 00 a5 00 29 00 05 00 2c 00 69 70 26 00 |qx&...)...,.ip&.| 009d93f0 00 00 29 00 05 00 2c 00 61 68 26 00 4a ff 29 00 |..)...,.ah&.J.).| 009d9400 05 00 2c 00 59 60 26 00 7e fe 29 00 05 00 2c 00 |..,.Y`&.~.)...,.| 009d9410 51 58 26 00 97 fd 29 00 05 00 2c 00 49 50 26 00 |QX&...)...,.IP&.| 009d9420 8c fc 29 00 05 00 2c 00 41 48 26 00 50 fb 29 00 |..)...,.AH&.P.).| 009d9430 05 00 2c 00 00 40 26 00 ce f9 29 00 05 00 00 00 |..,..@&...).....| 009d9440 00 00 69 6e 73 74 9a 00 00 00 4e 79 6c 6f 6e 20 |..inst....Nylon | ...

    The Jazz Guitar pgen data from above: pgen 84 sfGenOper=10 (16) (reverbEffectsSend) wAmount=1e (30)

    pgen 85 sfGenOper=30 (48) (initialAttenuation) wAmount=28 (40)

    This is the last pgen in the preset, as defined in the pbag chunk. If the last pgen is NOT 41, then it is a global zone.

  2. Change login to "bencollver"
  3. Change mimetype to "text/plain"