[eras]
era key  block-samples:int  audio-entry:list  other-entries:list  state-table
zd2   16             state ctx    state ctx      word 0 is the effect's state index; no services
zdl   8              ctx          state          one host service per slot, in the slots it shares with ctx

[zdl-context]
slot:int key  word unique
0     zero
1     parameters
2     state header
3     arena descriptor
4     dry block
5     wet block
6     accumulator
11    shuttle link
12    shuttle payload
13    auxiliary link
14    auxiliary payload
29    tracker period configuration

[parameter-words]
fact key           value:int
first-knob         5
first-knob-column  2
word-bytes         4

[zd2-data]
offset:hex key  word unique
0           data 0
4           audio
8           auxiliary audio
1c          rate box
20          data 20
24          data 24
28          data 28
fc          impulse response

[zd2-state]
offset:hex key  word unique
0           state index
14          cell impulse response

[zd2-seeds]
record key  +0       +4        +8        +c
data 24     work-b   0         0         work-b
rate box    self+10  3f800000  37aec287  self+10

[services]
service key                       zdl:int  zd2:int  returns                      arguments                                                       clears:list
arctangent                        -    45   float                        A4 float                                                        -
arctangent2                       -    46   float                        A4 float, B4 float                                              -
copy                              34   43   void                         A4 void*, B4 const void*, A6 u32                                -
cosine                            38   47   float                        A4 float                                                        -
curve                             21   30   float                        A4 float, B4 float, A6 u32, B6 u32, A8 u32                      -
db-to-gain                        26   36   float                        A4 float, A8 u32                                                -
deferred-copy                     15   11   void                         A4 void*, B4 const void*, A6 u32                                -
deferred-copy-pairs               -    12   void                         A4 void*, B4 const void*, A6 u32                                -
divide                            39   48   float                        A4 float, B4 float                                              -
exponential                       40   49   float                        A4 float                                                        -
exponential10                     -    51   float                        A4 float                                                        -
exponential2                      -    50   float                        A4 float                                                        -
file-callback-0                   16   -    void                         A4 uintptr, B4 u32                                              -
file-callback-1                   17   -    void                         A4 uintptr, B4 u32                                              -
fill                              35   44   void                         A4 void*, B4 u32, A6 u32                                        -
filter-coefficients               25   35   zdl: pointer A4; zd2: void   A4 float*, B4 float, A6 float, B6 u32, A8 float, B8 u32         -
filter-coefficients-divided-rate  52   61   zdl: pointer A4; zd2: void   A4 float*, B4 float, A6 float, B6 u32, A8 float, B8 u32, A10 i32  -
host-config                       -    42   u32                          -                                                               -
integer-commit                    -    6    void                         A4 u32*, B4 u32                                                 -
integer-commit-guard              -    5    void                         A4 u32*, B4 u32                                                 -
integer-taper                     22   31   u32                          A4 u32, B4 u32, A6 u32, B6 u32, A8 u32                          -
integer-to-float                  51   60   float                        A4 i32                                                          -
knob-read                         31   40   u32                          A4 uintptr, B4 u32                                              -
logarithm-natural                 -    52   float                        A4 float                                                        -
logarithm10                       45   54   float                        A4 float                                                        -
logarithm2                        -    53   float                        A4 float                                                        -
null-body                         0    -    ?                            ?                                                               -
onoff-ramp                        7    3    void                         A4 float*, B4 float, A6 float                                   -
power                             46   55   float                        A4 float, B4 float                                              -
range-guard                       27   37   u32                          A4 u32, B4 u32                                                  -
reciprocal                        47   56   float                        A4 float                                                        -
reciprocal-square-root            48   57   float                        A4 float                                                        -
record-handler                    -    13   void                         A4 uintptr, A6 u32                                              -
record-reset                      -    21   void                         A4 const void*                                                  -
record-secondary                  -    14   void                         A4 uintptr, A6 u32                                              -
service15                         -    15   ?                            ?                                                               -
service16                         -    16   ?                            ?                                                               -
service17                         -    17   ?                            ?                                                               -
service18                         -    18   ?                            ?                                                               -
service19                         -    19   ?                            ?                                                               -
service20                         -    20   ?                            ?                                                               -
service24                         -    24   ?                            ?                                                               -
service25                         -    25   ?                            ?                                                               -
service26                         -    26   ?                            ?                                                               -
service27                         -    27   ?                            ?                                                               -
service28                         -    28   ?                            ?                                                               -
service29                         -    29   ?                            ?                                                               -
service41                         -    41   ?                            ?                                                               -
service62                         -    62   ?                            ?                                                               -
sine                              49   58   float                        A4 float                                                        -
slot-status                       -    22   u32                          -                                                               -
slot-status-secondary             -    23   u32                          -                                                               -
square-root                       50   59   float                        A4 float                                                        -
state18                           18   -    void                         A4 uintptr                                                      -
state19                           19   -    u32                          A4 uintptr                                                      -
state20                           20   -    u32                          A4 uintptr                                                      -
state32                           32   -    void                         A4 uintptr                                                      -
state43                           43   -    ?                            ?                                                               -
state44                           44   -    ?                            ?                                                               -
status                            30   39   u32                          -                                                               -
tempo-centi-ms                    24   33   u32                          A4 u32, B4 u32                                                  -
tempo-phase                       23   32   u32                          A4 u32                                                          A5
tempo-samples                     -    34   u32                          A4 u32, B4 u32                                                  -
tracker-level                     28   38   u32                          zdl: A4 u32; zd2: -                                             -
value-ramp                        8    4    void                         A4 float*, B4 float, A6 float                                   -
word-store                        9    -    u32                          A4 u32*, B4 u32                                                 -
word-store-ramped                 10   -    u32                          A4 u32*, B4 u32                                                 -

[differences]
service:name@services.service key  difference
deferred-copy                 ZDL refuses a copy longer than its 344-byte staging buffer; ZD2's staging object has no near limit
filter-coefficients           ZDL returns the output pointer in A4; ZD2 returns nothing
filter-coefficients-divided-rate  ZDL returns the output pointer in A4; ZD2 returns nothing
onoff-ramp                    ZDL stores the target at once; ZD2 ramps to it over the given samples through the calling instance's ramp table
tracker-level                 ZDL answers the configured tracker's level or leaves A4 as it was; ZD2 takes no argument and answers +0.0
value-ramp                    ZDL stores the target at once; ZD2 ramps to it at the given rate through the calling instance's ramp table

