-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathState Chunk Definitions
More file actions
1568 lines (1478 loc) · 138 KB
/
Copy pathState Chunk Definitions
File metadata and controls
1568 lines (1478 loc) · 138 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTE ON FORMATTING: USE REGULAR SPACE RATHER THAN TAB TO CREATE IDENTATION AND SEPARATE COMMENTS FROM THE CODE TO ENSURE FORWARD COMPATIBILITY
BECAUSE GITHUB MAY CHANGE THE LENGTH OF TAB SPACE WHICH WILL BREAK FORMATTING LIKE WHAT HAPPENED DURING UPDATE OF THE DOC ON AUG 16, 2025.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Original by IXix
Cockos Wiki: http://wiki.cockos.com/wiki/index.php/State_Chunk_Definitions
This page details what is known about various state chunk definitions such as are returned by API functions.
There are still some question marks (gaps) in the definitions and several plugin formats are completely undocumented so please fill in any gaps you can. Thanks to all who have spent time poking around these things. It's a tedious business.
Please note that comments, empty lines and indentation are for illustration only.
For the sake of formatting, the following changes have been made:
Float values with fourteen decimal places have been condensed to three decimal places.
Float values with ten decimal places have been condensed to two decimal places.
Float values with six decimal places have been condensed to one decimal place.
The shorthand "int (bool)" has been used to denote "0 = False, 1 = True"
Contents:
1 Project (PROJECT SPECIFIC DATA ARE NOT ACCESSIBLE TO ReaScript API FUNCTIONS MEANT FOR CHUNK MANIPULATION, use GetSetProjectInfo and GetSetProjectInfo_String)
2 Track
3 Audio Item
4 MIDI Item
5 Envelope
6 Track/Take FX
7 VST(i) Plugin
8 Jesusonic Plugin
--------------------------------------------------------------------------------------------------------------------
Project specific settings and metadata. This is the parent chunk of the whole project.
<REAPER_PROJECT 0.1 "7.61/macOS-arm64" 2147483647 0 // Start of Project definition
// (NOT ACCESSIBLE TO ReaScript API FUNCTIONS)
// field 1, float, RPPXML schema version (?)
// field 2, string, combination of REAPER version number
// and computer OS/architecture
// field 3, int, Unix epoch timestamp of last modification
// field 4, ??
SAMPLERATE 48000 0 0 // Project sample rate
// field 1, int, sample rate in Hz
// field 2, bool, use sample rate
// 0 = use hardware default rate
// 1 = use specified rate
// field 3, bool, force tempo/sig changes on whole samples
TIMEMODE 0 5 0 30 0 -1 0 0 // Ruler and frame rate settings, fps combinations explained below
// field 1, int, ruler time unit preset
// 0 = Minutes:Seconds
// 2 = Measures.Beats
// 3 = Seconds
// 4 = Samples
// 5 = Hours:Minutes:Seconds:Frames
// 6 = Measures.Beats (minimal)
// 8 = Absolute Frames
// 10 = Measures.Fractions
// 11 = Minutes:Seconds (minimal)
// field 2, int, fps preset
// 0 = 23.976 fps ND
// 1 = 24 fps
// 2 = 25 fps
// 3 = 29.97 fps DF
// 4 = 29.97 fps ND
// 5 = 30 fps
// 6 = 75 fps
// 7 = 48 fps
// 8 = 50 fps
// 9 = 60 fps
// field 3, ??
// field 4, int, whole frames fps value
// 23.976 => 24
// 29.97 DF/ND => 30
// field 5, int, decimal frame rate and drop frame rate flag
// 23.976 => 2
// 29.97 DF => 1
// 29.97 ND => 2
// field 6, int, secondary time unit preset
// -1 = None
// 0-11 = same as field 1
// field 7, ??
// field 8, bool, display parent project time as secondary
// time unit in subproject ruler
MASTERMUTESOLO 5 // Master track mute/solo/mono controls, int (bitfield)
// &1 = mute
// &2 = solo
// &4 = sum to mono
MASTERTRACKVIEW 1 0.5 0.5 1 1 1 0 0 0 0 0 0 1 0 1 // Master track visibility
// field 1, bool, visible in TCP
// field 2, float, height of slot area in Mixer channel strip
// 0 = slots hidden
// 1 = slots fully expanded
// field 3, float, height of send/output slots in slot area
// field 4-14, ??
// field 15, bool, pinned track in TCP
MASTER_VOLUME 0.5 0 -1 -1 0 // Master volume and pan
// field 1, float, volume: 0 = -inf, 1 = 0dB, >1 is possible
// field 2, float, pan: -1 = 100%L, 1 = 100%R
MARKER 1 2 "Edit Marker" 8 23514367 1 B {8C98...E6B} 0 // Project marker
// field 1, int, marker index, this is counted separately/
// between markers and regions
// field 2, float, time position
// field 3, string, marker name
// field 4, int (bitfield), flags
// &1 = is region
// &8 = selected
// &16 = hidden
// field 5, int, custom color, 0 for default
// or 0x1000000 | ColorFromNative() for custom value
// field 6, ??
// field 7, char, least-significant-bit color flag,
// indicating the format of the color value
// B = 0x1RRGGBB
// R = 0x1BBGGRR
// field 8, GUID, unique 32 digit identifier for the marker
// field 9, ??
MARKER 1 2 "Edit Region" 9 0 1 B {AFD8C34F-4325-2..} 0 // Project region, defined by a pair of MARKER chunks
MARKER 1 4 "" 9 // field 1, int, index, the same index is used for both MARKERs
// of the region
// field 2, float, start or end time of the region
// field 3, string, region name, omitted on second MARKER
// field 4, int, flags, &1 set to indicate it's a region
// field 5-9, as above, omitted on second MARKER
<TRACK // Track definitions
(see chunk info below)
>
>
--------------------------------------------------------------------------------------------------------------------
The Track state chunk contains all the settings for a track and all of its items, envelopes, receives, plugins etc.
<TRACK // Start of Track definition
NAME "Track Name" // Track name
LOCK 1 // Track controls are locked, absent altogether when not locked
PEAKCOL 16576 // Peak colour (items and takes override)
// 16576 is the default value to be returned by
// GetMediaTrackInfo_Value() function with 'I_CUSTOMCOLOR'
// attribute when no custom track color has been applied
BEAT -1 // Track timebase (-1 = project default)
AUTOMODE 0 // Automation mode
// 0 = Trim/Read
// 1 = Read
// 2 = Touch
// 3 = Write
// 4 = Latch
VOLPAN 0.359 0.000 -1.000 // Volume/Pan
// field 1, float, track volume
// field 2, float, track pan
// field 3, float, track pan law
MUTESOLO 0 0 0 // Mute/solo
// field 1, int (bool), mute
// field 2, int, solo, 0= no solo, 1 = solo, 2 = solo-in-place
// field 3, int (bool), solo defeat
IPHASE 0 // Invert phase, int (bool)
ISBUS 0 0 // Folder settings
// field 1, int, folder state:
// 0 - regular track (both top level and folder child);
// 1 - folder parent (both top level and nested);
// 2 - the very last track in the folder.
// field 2, int, track "indentation" increase:
// 0 - regular track (both top level and folder child),
// no change in indentation;
// 1 - folder parent (both top level and nested),
// as 1 indentation level is to be increased;
// -n - the very last track in the folder, the value n depends
// on the total count of folder levels including the topmost,
// if the last track in the folder has never been followed by
// another (regular) track, this field value is -1 regardless
// of the folder depth.
// In practice regular track values are always 0 0, folder
// parent tracks 1 1 and last track in the folder 2 -n
BUSCOMP 0 0 0 41 8 // Collapse folder (bus compact?)
// field 1, int, collapse state in Arrange 0=not collapsed,
// 1=collapsed medium, 2=collapsed small
// field 2, int, collapse state in the Mixer 0=not collapsed,
// 1=collapsed;
// field 3, int, collapse state in track wiring, 0=not collapsed,
// 1=collapsed;
// field 4, int, track wiring routing window x position
// field 5, int, track wiring routing window y position
SHOWINMIX 1 0.6 0.5 1 0.5 -1 -1 -1 // Show In Mixer
// field 1, int (bool), show in mixer
// field 2, float, ??
// field 3, float, ??
// field 4, int (bool), show in track list
// field 5, float, ??
// field 6, int, ??
// field 7, int, ??
// field 8, int, ??
FREEMODE 0 // Free item positioning / Fixed item lanes mode, int
// 1 - free item positioning (FIP), 2 - fixed item lanes (FIL)
// which is supported since REAPER 7;
// Only present when either of the modes is enabled,
// it's possible than in pre-7 versions it was present always
// and only the value would change between 0 and 1.
// The following 3 FIL mode attributes are only supported since v7
FIXEDLANES 8 0 0 0 0 // field 1, int, bitfield
// &2 - 'Create comp areas for new recording while comping'
// option is DISabled,
// &8 - 'Big lanes' option is enabled, false means 'Small lanes'
// option is enabled,
// &32 - 'Hide all buttons' option is enabled;
// field 2, int (bool), 1 - 'Allow editing source media while comping'
// option is enabled;
// field 3, int (bool), 1 - 'Show/play only lane' option is enabled
// (index of the playing lane is the 1st field of LANESOLO attribute),
// in this mode lanes only play exclusively;
// field 4, int (bool), 1 - 'Media items in higher numbered lanes mask
// playback of lower lanes' option is enabled;
// field 5, int (bitfield), 0 - Project default recording behavior
// set at Options -> New recording that overlaps existing media items,
// &1 - New recording add lanes in layers
// (multiple lanes play at once),
// &2 - New recording add lanes (lanes play exclusively),
// &4 - New recording does not add lanes (record into playing lane);
// FIXEDLANES attribute is present in track chunk by default,
// it's absent when 'Small lanes' and 'Create comp areas for new
// recording while comping options are enabled.
LANESOLO 7 0 0 0 0 0 0 0 // field 1, int (bitfield), 0 - no lane plays, &1 - lane 1 plays,
// &2 - lane 2 plays, &4 - lane 3 plays etc,
// the value isn't updated after the last playing lane has been deleted
// and no other lane is a playing one;
// field 2 ??
// field 3 ??
// field 4 ??
// field 5 ??
// field 6 ??
// field 7 ??
// field 8 ??
// When lanes are toggled as playing with 'Toggle playing lane'
// the default value for all fields becomes 4294967295
// (a max 32 bit integer).
// The difference between 4294967295 and the value of the field 1
// is the bitfield of the NON-playing lanes, i.e. if field 1 is
// 4294967289, then 4294967295 - 4294967289 = 6, 6&1 == 1 false,
// 6&2 = 2 true, 6&4 = 4 true, which means lane 1 plays,
// lanes 2 and 3 do not (toggled to off);
// LANESOLO attribute is absent when 'Fixed item lanes' mode
// hasn't been enabled yet or when 'Play all lanes' option is enabled
// as is the case immediately after enabling 'Fixed item lanes'
// on a track that hasn't had any, and it is present when only one lane
// is enabled as playing, out of several, or when all lanes were enabled
// as playing by Ctrl+click or with 'Toggle playing lane' regardless
// of the FIL mode's being currently enabled.
LANEREC 1 -1 -1 // Only present when there's a record or comping enabled lane.
// field 1, int, 0-based index of a record enabled lane,
// lane record enabled state is exclusive; -1 - no record enabled lane;
// field 2, int, 0-based index of a comping enabled lane,
// lane comping enabled state is exclusive, -1 - comping is disabled;
// field 3, int, 0-based index of the last comping enabled lane
// when it's no longer active, -1 - comping hasn't been enabled yet.
LANENAME 1 2 "" "lane name" // List of lane names in ascending order. Names which contain spaces
// as well as empty names are enclosed within double quotes "".
// The attribute is absent when 'Fixed item lanes' mode hasn't been
// enabled yet and present when it was enabled at least once.
REC 0 0 0 0 0 0 0 // Record settings
// field 1, int (bool), armed
// field 2. int, input,
// 0=mono left, 1=mono right, 1024=stereo left+right...
// device + channel(s) coded via unknown bitwise method
// field 3. int, monitor, 0=off, 1=on, 2=auto
// field 4. int, record mode,
// 0=input, 1=output (stereo), 2=disable(monitor),
// 3=output (stereo, latency comp), 4=Output (MIDI),
// 5=output (mono), 6=output (mono, latency comp),
// 7=MIDI overdub, 8=MIDI replace, 9=MIDI touch replace,
// 10=output (multichannel),
// 11=output (multichannel, latency comp)
// field 5. int (bool), monitor track media while recording
// field 6. int (bool), preserve PDC delayed monitoring
// field 7. int, record path, 0=primary, 1=secondary, 2=both
TRACKHEIGHT 0 0 // Height in TCP,
// field 1, int, height in pixels
// field 2, int (bool), folder override (collapsed)
INQ 0 0 0 0.50 100 0 0 100 // Input quantize settings
// field 1, int (bool), quantize midi
// field 2, int, quantize to pos (-1=prev, 0=nearest, 1=next)
// field 3, int (bool), quantize note-offs
// field 4, float, quantize to (fraction of beat)
// field 5, int (%), quantize strength
// field 6, int (%), swing strength
// field 7, int (%), quantize range min
// field 8, int (%), quantize range max
NCHAN 2 // Number of track channels, int
<RECCFG 1 // Recording format data. Not present if not changed.
dmdnbwAAAD8AgAAAAIAAAAAgAAAAAAEAAA== // binary data, leave it alone
> //
TRACKIMGFN "filename.ext" // Track icon file path if track icon is applied to the track.
// Only lists file name if icon is located in \Data\track_icons
// or \Data\toolbar_icons folders or in the project folder root;
// relative path if the icon is located under the project folder
// subfolder and full path if the icon is located elsewhere,
// including directly in the \Data folder;
// When icon is located in the project folder the path here is
// only updated to file name or relative after reload of a saved
// project, otherwise full path is listed.
MIDICOLORMAPFN "C:Path\To\note_color_map.png" // Path to note color map file, is added after execution of the action
// "View: Load note color map from file", cleared after execution
// of the action "View: Clear note color map (use default)"
FX 1 // FX state, int, 0=bypassed, 1=active
TRACKID {5619EDC5-E743-4BE8-AE9F-3B3469A111B5} // REAPER track id, leave it alone
PERF 0 // Performance options, int (bitwise)
// val & 1 = prevent media buffering
// val & 2 = prevent anticipative fx
LAYOUTS "bd -- Small Full Meter + value readouts" "bc -- Small Full Meter" // active TCP and MCP layouts,
// the attribute is absent if both
// are set to Global default,
// and in the Master track chunk,
// if only one is set to Global default
// it's represented by an empty placeholder
// i.e. "" "bc -- Small Full Meter",
// if not an empty placeholder, the layout
// name is only enclosed within quotes if
// it contains spaces as is the rule in
// the chunks
<EXT // Extension-specific persistent data which can be added with
// GetSetEnvelopeInfo_String() function using 'P_EXT' parameter
parmname string // field 1, string - parmname, set with the function namesake argument
> // field 2, string - string, set with the function stringNeedBig
// argument; to delete pass this argument as an empty string
// --- Start of receive data ---
// One for each receive or not present if no receives
AUXRECV 2 1 1.000 0.000 0 0 0 2 0 1.000 80 1 // First receive
// field 1, int, source track index (zero based)
// field 2, int, mode
// 0 = Post Fader (Post Pan)
// 1 = Pre FX
// 3 = Pre Fader (Post FX)
// field 3, float, volume
// field 4, float, pan
// field 5, int (bool), mute
// field 6, int (bool), mono sum
// field 7, int (bool), invert polarity
// field 8, int, source audio channels
// -1 = none, 0 = 1+2, 1 = 2+3, 2 = 3+4 etc.
// probably different if non-standard pairs aren't allowed
// field 9, int, dest audio channels (as source but no -1)
// field 10, float, panlaw
// field 11, int, midi channels
// source = val & 0x1F (0=None), dest = floor(val / 32)
// field 12, int, automation mode (-1 = use track mode)
// --- Start of envelope definitions for the above receive
// One definition block for each non-empty envelope.
// See GetSetEnvelopeState() for full envelope definition.
<AUXPANENV // Start of first receive envelope
(see chunk info below) // ...
> // End of first receive envelope
<AUXMUTEENV // Start of second receive envelope.
(see chunk info below) // ...
> // End of second receive envelope
// --- End of envelopes for first receive
AUXRECV 3 0 1.000 0.000 0 0 0 0 0 -1.000 0 -1 // Second track receive settings (as above but no envelopes)
// --- End of receive data ---
MIDIOUT -1 // MIDI hardware output settings. int (bitwise)
// device = floor(val / 32)
// index of device (inc. ignored devices)
// -1 for no MIDI hardware output
// channel = val & 0x1F
// channel number or 0 for 'use original'
// val = device * 32 + channel (device 2, ch 4 == 68)
CUSTOM_NOTE_ORDER 0 1 2 45 105 3 // list of integers in the range of 0 - 127 representing note numbers
// Custom note order in Piano roll on the track, which can be changed
// by Click+left drag.
// Only numbers of displayed notes are listed. The note display
// is governed by options under
// View -> Show/hide note rows in the MIDI Editor
<MIDINOTENAMES // Custom MIDI note names applied to Piano roll in all MIDI items
-1 36 "My note 1" 0 36 // on the track
-1 38 "My note 2" 0 38 // field 1, int, MIDI channel number, -1 = Omni, named notes can be
-1 40 "My note 3" 0 40 // assigned to different channels, and the same named note can be
-1 41 "My note 4" 0 41 // assigned to more that one channel, in which case its listed as many
-1 43 "My note 5" 0 43 // times as there're channels it's assigned to appearing under
> // different channel numbers;
// field 2, int, 0-based note number; field 3, string, note name,
// if the name contains spaces it's enclosed within quotes;
// field 4 ??; field 5, int, note number.
// Named notes assigned to specific MIDI channels are only displayed
// when such channels are selected in the MIDI Editor channel filter,
// unless they're also assigned to Omni in which case they will be
// displayed if any other channel is selected in the filter as well.
// Named notes assigned to Omni will be displayed alongside named notes
// assigned to specific MIDI channels unless there're blank names
// assigned to such specific MIDI channel whose note numbers match
// the named note numbers assigned to Omni.
// Manual input of note names in the MIDI Editor always results in Omni
// assignment. Linking note names to specific MIDI channel is only
// possible via API using Get/SetTrackMIDINoteName(Ex) functions
// or by manual editing of the .rpp file.
MAINSEND 1 0 // Master/parent send
// field 1, int (bool)
// field 2, ????
// --- Start of hardware send data, one line per hardware send ---
// --- absent if no hardware sends ---
HWOUT 512 0 1 0 0 0 0 -1:U -1 // field 1, int, output index: 0 - 511 - stereo output,
// 512 - 1023 - aux (rearoute) loopback stereo output which existed
// before v7.0, or officially supported looback output available
// since v7.0
// (before v7.0 could be enabled manually with 'rearoute_loopback=' key
// in reaper.ini and had been supporting up to 512 channels since build
// 6.69,
// ref: https://forum.cockos.com/showthread.php?p=1796913#post1796913;
// since v7.0 can be enabled at
// Preferences -> Audio -> Virtual loopback audio hardware),
// 1024 - 1535 - mono output, 1536 - 2047 - aux (rearoute) loopback
// mono output (of both types, see explanation above; if both types are
// enabled the number of channels allocated to each is 256 rather than
// 512) (with mono channel count even integer corresponds to the odd
// channel number, i.e. 1024 is mono 1, 1025 is mono 2 etc.),
// the value is a bitfield, see explanation to 'I_DSTCHAN' parameter
// of SetTrackSendInfo_Value() function in the ReaScript API doc;
// field 2, int, send mode: 0 - Post-Fader (Post-Pan),
// 1 - Pref-Fader (Pre-FX), 3 - Pref-Fader (Post-FX);
// field 3, float, volume: 1 is 0 dB;
// field 4, float, pan: the range is -1 - +1;
// field 5, int (bool), mute: 1 - On, 0 - Off;
// field 6, int (bool), invert polarity: 1 - On, 0 - Off;
// field 7, int, send source channel: -1 - None, 0 - 1023 stereo,
// 1024 - 1535 - mono (even integer corresponds to the odd channel
// number, i.e. 1024 is mono 1, 1025 is mono 2 etc.),
// 2048 - 3071 - multichannel with 4 channels, starting from channel 1,
// and from 2, 3 etc. if more than 4,
// 3072 - 4095 - multichannel with 6 channels, same pattern, etc.,
// the value is a bitfield, see explanation to 'I_SRCCHAN' parameter
// of SetTrackSendInfo_Value() function in the ReaScript API doc;
// field 8, ????
// field 9, int, automation mode: -1 - Track automation mode,
// 0 - Trim/read, 1 - Read, 2 - Touch, 3 - Write, 4 - Latch,
// 5 - Latch Preview;
// --- Start of track envelopes ---
// One definition block for each non-empty envelope.
// See GetSetEnvelopeState() for full envelope definition.
<VOLENV2 // First track envelope.
(definition removed) // ...
> // End of first track envelope
// --- End of track envelopes
// --- Start of FX section ----
<FXCHAIN // Not present if track hasn't got/had FX ---
(see chunk info below)
> // --- End of FX section
// --- Start of FREEZE section ----
<FREEZE 0 // Not present if track wasn't frozen ---
(see chunk info below)
> // --- End of FREEZE section
// --- Start of Input FX section (irrelevant for the Master track) ----
<FXCHAIN_REC // Not present if track hasn't got/had Input FX ---
(see chunk info below)
> // --- End of Input FX section
// --- Start of item definitions ---
<ITEM // First item definition
(see chunk info below)
> // End of first item
// --- End of item definitions
> // End of Track definition
--------------------------------------------------------------------------------------------------------------------
Audio Item
<ITEM // Item section start
POSITION 0.000 // Position on the timeline, in seconds
SNAPOFFS 0.000 // Snap offset, in seconds
LENGTH 145.500 // Item length, in seconds
LOOP 0 // Loop source? int (bool)
ALLTAKES 0 // Play all takes? int (bool)
COLOR 22278759 // Item colour, int , Not present if not set.
BEAT 0 // Item timebase, int, Not present if not set. -1 = use track timebase
SEL 1 // Is the item selected? int (bool)
YPOS 0.75 0.25 2 // Item lane relative position (supported since v7)
// Only present when Fixed item lanes (FIL) mode is or was enabled in item's parent track
// field 1, float, fixed item lane top edge relative Y coordinate within track height
// which is taken to be 1, same as the value retuned by
// GetMediaItemInfo_Value(item, 'F_FREEMODE_Y'),
// the actual lane index can be calculated with the formula:
// 0.75 + 0.25 (field 2 below) / 0.25 = 4, i.e. first find the part of the track height
// occupied by the current and preceding lanes (0.75 + 0.25), then divide by
// the ratio between track height and lane height (0.25), which is the same as
// reaper.GetMediaItemInfo_Value(item, 'I_FIXEDLANE');
// In items which at any point in the past were located on FIL or in their copies
// field 1 contains the 0-based index of their last lane;
// field 2, float, ratio between track height and single fixed item lane height,
// where track height is 1, so 0.25 means there're 4 lanes, because 1 / 0.25 = 4,
// track height is divided uniformely between lanes,
// same as the value retuned by GetMediaItemInfo_Value(item, 'F_FREEMODE_H'),
// 1 seems constant in items which at any point in the past were located on FIL
// or in their copies;
// field 3, ??, the value of 2 seems constant in items on tracks with fixed lanes
// whereas 0 on tracks with no FIL
FADEIN 1 0.0 0.0 // Fade in settings
// field 1, int, fade in curve type (0 - linear, etc.)
// field 2, float, fade in time (in seconds)
// field 3, float, ??
FADEOUT 1 0.0 0.0 // Fade out settings (same as fade in above)
// ...
// ...
// ...
FADELPF 2 // Low pass fade option is enabled in fade shapes menu, supported since 7.48
// field 1, int, 1 = low-pass fade-in, 2 = low-pass fade-out, 3 = both;
MUTE 0 0 // field 1, int (bool) 1 - item is or was muted if mute state was followed
// by item soloing with actions 'Item properties: Solo',
// 'Item properties: Solo exclusive', 'Item properties: Toggle solo',
// 'Item properties: Toggle solo exclusive' or via ReaScript API because
// in this case mute flag isn't cleared);
// field 2, int, 0 - item is and was not soloed; -1 - item is soloed
// (via actions 'Item properties: Solo', 'Item properties: Solo exclusive',
// 'Item properties: Toggle solo' or via ReaScript API);
// 1 - item was soloed and its solo was overridden by soloing of another item
// (via action 'Item properties: Toggle solo exclusive' or via ReaScript API)
FADEFLAG 1 // ??, int, may not be present
GROUP 2560 // A number of the group the item belongs to, if grouped
IGUID {98E8ECDE-FF4D-4E06-87ED-43A5E7E6A61A} // Item id. Leave it alone
// --- From this point, values mostly relate to the first take
// except for field 1 of VOLPAN which is the item trim
IID 424 // Deprecated since build 6.54
// Item ordinal number governing the order of overlapping items
// displayed in lanes and especially those with identical start
// and end coordinates, when
// 'Show overlapping media items in lanes (when room)' option
// is enabled. The greater the IID the lower the item's lane is.
// With the said option disabled or lanes fully collapsed
// the visible/outermost item is the latest one on the track
// out of all items it's overlapping, regardless of its IID
<NOTES // Notes block start
|-1 // Notes content
> // Notes block end
RESOURCEFN "filename.ext" // Name of the image file loaded in item notes.
// Only lists file name if it's located in the \Data\track_icons
// or \Data\toolbar_icons folders in REAPER resource directory,
// relative path if it's located in the project directory subfolder
// and full path if the file is located elsewhere, including directly
// in the \Data folder.
IMGRESOURCEFLAGS 0 // Bitfield of item notes settings; absent if item notes are empty
// 0 - Do not display image and no Word wrap; &1 - Center/tile image;
// &3 - Stretch image/text; &5 - Full height image; &8 - Word wrap.
NOTESWND 38 176 529 55 // Item Notes window last coordinates
// Note: Empty items don't have takes so NOTESWND will be the last possible
// attribute in their chunk
COMP 1 1 0 // Take comps data: field 1 - integer, comp index (1 based),
COMP 2 0 0 // field 2 - integer, active take index (0 based), field 3 - ???
// Custom comp names are stored in RAM and in the project .RPP file once saved
NAME "The first take" // First take name
VOLPAN 1.0 0.0 1.0 -1.0 // Volume and pan settings
// field 1, float, item trim
// 1.00 = 0 dB
// 16.00 = +24 dB
// 0.50 = -6 dB
// field 2, float, first take pan, -1.00 = left, 1.00 = right
// field 3, float, first take volume (other takes in TAKEVOLPAN below),
// if negative 'Invert phase' setting is enabled
// field 4, float, first take pan law
SOFFS 0.000 // First take slip offset (in seconds)
PLAYRATE 1.000 1 0.000 -1 0 0.0025 // First take playrate settings
// field 1, float, playrate
// field 2, int (bool), preserve pitch while changing rate
// field 3, float, pitch adjust, in semitones.cents
// field 4, int, pitch shifting/time stretch mode and preset
// LEGACY INFO START
// -1 - project default
// 0-2 - Sound Touch (3 presets)
// 65536-65567 - Dirac LE (32 presets), discontinued since presumably build 5.60
// 131072-131119 - Low quality windowed (48 presets)
// 196608-196639 - élastique Pro (32 presets)
// 262144-262147 - élastique Efficient (4 presets)
// 327680-327683 - élastique SOLOIST (4 presets)
// 393216-393247 - élastique 2.1 Pro (32 presets)
// 458752-458755 - élastique 2.1 Efficient (4 presets)
// 524288-524291 - élastique 2.1 SOLOIST (4 presets)
// LEGACY INFO END
// Since build 5.60 the algo types array has changed and number
// of options per algo has increased, so since then
// high 2 bytes = algo type, low 2 bytes = algo options bitfield
// As of build 7.72 the algo types are as follows:
// -65536 (direct value) - project default,
// 0 - Sound Touch, 2 - Simple windowed (fast),
// 6 - Elastique 2.2.8 Pro, 7 - ~ Efficient, 8 - ~ Soloist,
// 9 - Elastique 3.3.3 Pro, 10 - ~ Efficient, 11 - ~ Soloist,
// 13 - Rubber Band Library (since 5.60), 14 - Rrreeeaaa (since 6.57),
// 15 - ReaReaRea (since 6.74)
// Explication of the low 2 bytes values is ommitted because
// they're too numerous;
// field 5, ??
// field 6, float, stretch markers fade size in sec
CHANMODE 0 // First take channel mode, int
// 0 = normal, 1 = reverse stereo, 2 = mono (downmix)
// 3 = mono (left), 4 = mono (right),
// 5-194 = Mono (3-128), the break point is channel 65
// whose index is 131, so mono channel ranges are
// 5-66 = 3-64, 131-194 = 65-128;
// 67-257 = Stereo (1-128), the break point is channel
// 65/66 whose index is 195, so stereo channel ranges are
// 67-130 = 1/2-64/65, 195-257 = 65/66-127/128;
// These are the values which are set and retrieved with
// Get/SetMediaItemTakeInfo_Value() 'I_CHANMODE' attribute
GUID {4EB7779B-D570-4CCF-8739-161D2D32C154} // First take id. Leave it alone
TKM 0.5 "TEST 123" 21036800 0.5 // Take marker data
// field 1 - float, position within take in sec
// field 2 - string, name, without quotes if consists of only one
// character or word
// field 3 - integer, OS native color code
// can be converted to RGB with: r, g, b = reaper.ColorFromNative(code)
// field 4 - integer, marker length in sec (protruding horizontal bar)
// supported since build 7.17
SM 0 0 -0.149425287 + 0.574712644 0.5 + 1.348114004 1.273401361 // Stretch marker data
// Transient markers (guides) data
TMINFO 44100 // field 2 - item source sample rate
TM 104 671 6270 13233 678 676 673 19218 6385 677 // field 2 - distance in samples, at the above sample rate,
680 6320 // of the first transient guide from the item start
// returned by reaper.GetMediaItemInfo_Value(item, 'D_POSITION')
// fields 3 onwards - distance in samples at the above sample rate
// from previous transient guide
SAMPLEEDITS 1 1 44100 // Sample edits data (supported since build 7.70), the attribute
// is listed if sample edits were enabled at least once
// field 1, bool, 1 - sample edits are visible and active,
// 0 - sample edits are hidden and inactive
// field 2, int, media source channel count
// field 3, int, media source sample rate
<SPLS 0 // List of edited samples, absent if sample edits have been cleared
// field 1, int, number of the channel the samples belong to, 0-based
SPL 1613 -0.02521008403361 // Edited sample properties
// field 1, int, sample index, 1-based
// field 2, float, sample amplitude in the range of -1 - 1
SPL 1614 0.00840336134454
> // End of sample edits data
<SOURCE SECTION // Source section start (only present when changed in Item properties)
LENGTH 0.000 // Section length
MODE 3 // Mode, 2 = Section and Reverse, 3 = Reverse
STARTPOS 0.000 // Section start offset (in seconds)
OVERLAP 0.010 // Section crossfade (in seconds)
<SOURCE WAVE // Source details. Appears alone if SOURCE SECTION is not set;
// when the take is forced offline with actions
// Item: Toggle force media offline,
// Item: Toggle force inactive take media offline
// WAVE is replaced with _OFFLINE_WAVE
FILE "C:Path\To\AudioFile.wav" // Source file.
> // Source details end
> // Source section end
<SOURCE CLICK // Click source section start (only relevant for click source item/take)
AUTO 1 0 //
BPM 100 // Project tempo at which click source item was created
BPI 4 4 //
VOL 0.5 0.25 //
BEATLEN 4 //
FREQ 1760 880 1 //
SAMPLES "" "" "" "" //
SPLIGNORE 0 0 //
SPLDEF 2 660 "" 0 "" //
SPLDEF 3 440 "" 0 "" //
PATTERN 0 169 //
PATTERNSTR ABBB // Click pattern
MULT 1 //
> // Click source section end
<SOURCE LTC // SMPTE Generator propetries source section start (only relevant for SMPTE Generator item/take)
STARTTIME 0 //
FRAMERATE 30 0 //
SEND 0 //
USERDATA 0 0 0 0 //
> // SMPTE Generator propetries section end
<SOURCE VIDEO // A video take with image/video source section start
AUDIO 0 // 'Disable audio' option is enabled in Item/Source properties -> Audio,
// the attribute is abesnt otherwise;
VIDEO_DISABLED // 'Disable video' option is enabled in Item/Source properties -> Video,
// the attribute is abesnt otherwise;
HIRESPEAKS 1 // int, 1 - high resolution peaks option is enabled in Item/Source properties -> Audio,
// -1 - low resolution peaks option is enabled in Item/Source properties -> Audio,
// The attribute is absent when 'Use global default (high-res peaks)' option is enabled;
FLIP 1 0 // field 1, int, 1 - Vertical, 2 - Horizontal, 3 - Rotate 180, 4 - Rotate 90 CW, 5 - Rotate 90 CCW,
// 0 - a newly created video item with image source,
// The attribute is absent when the option is 'Normal',
// field 2, int or bool, 1 - a newly created video item with image source,
// 0 - when field 1 is other than 0, see above;
// The attribute is absent entirely in a newly created video item with video source;
FILE "C:\Users\Current User\Desktop\my_image.jpg"
> // A video take with image/video source section end
<SOURCE VIDEOEFFECT // Dedicated video processor item/take source section start
// Source of item inserted with the action
// 'Insert dedicated video processor item'.
<CODE // The following code formatting is identical to
// Video processor code formatting showcased further
// below in the 'Video Processor plugin' paragraph
|// Invert colors //
|//@param pa 'preserve RGBA alpha' 0 0 1 .5 1 //
|ok=input_info(input=0,project_w,project_h); //
|gfx_set(1); //
|gfx_fillrect(0,0,project_w,project_h); //
|gfx_set(0,0,0,-1,1); // negative alpha, additive //
|ok? ( //
| gfx_blit(input, 0); //
| pa && colorspace=='RGBA' ? ( gfx_mode=0xf0+3+3*4; gfx_blit(input,0); ); //
|); //
> //
CODEPARM 0 8 5 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 //
0 0 0 0 0 0 //
> // Dedicated video processor item/take source section end
<SOURCE EMPTY // Present in items without source, which can be created
> // out of empty items by adding a take marker for example.
<TAKEFX // -- Take FX section start
(see chunk info below under Track/Take FX) //
> // -- Take FX section end
TAKE_FX_HAVE_NEW_PDC_AUTOMATION_BEHAVIOR 1
// -- Take envelopes section start, one block per envelope
<VOLENV // Envelope alias (VOLENV, PANENV, MUTEENV, PITCHENV)
EGUID {5CB63539-0B47-4094-97FA-C62230F23208} // Envelope ID
(see chunk info below under Envelope)
> // -- Take envelopes section end
TAKE NULL // Second take start. An empty take inserted with actions
// 'Item: Add an empty take before/after the active take',
// if active and the item is selected, SEL attribute follows NULL;
// such take pointer cannot be retrieved either with GetActiveTake()
// or with reaper.GetTake(item, take_idx), or with
// reaper.GetTake(item, reaper.GetMediaItemInfo_Value(item, 'I_CURTAKE'))
// even though it's included in the total take count.
// When such take is the topmost its attribute is absent in the chunk
// and the data of the next valid take are listed under TAKE attribute.
TAKE SEL // Third take start. SEL only appears if this take is active
// in a selected item;
NAME "The second take" // Take name
TAKEVOLPAN 0.0 1.0 -1.0 // Take volume and pan settings
// field 1, float, take pan
// field 2, float, take volume, if negative 'Invert phase' setting is enabled
// field 3, float, take pan law
SOFFS 0.000 // Take slip offset (in seconds)
PLAYRATE 1.000 1 0.000 -1 // see PLAYRATE above
CHANMODE 1 // see CHANMODE above
GUID {4EB7779B-D570-4CCF-8739-161D2D32C154} // Take id. Leave it alone
<SOURCE WAVE // Take source details
FILE "C:\Full\Path\To\AudioFile reversed.wav" // Source filename
> // Source section end
> // Item section end
--------------------------------------------------------------------------------------------------------------------
MIDI Item
<ITEM // Item section start
POSITION 12.000 // see Audio item state chunk above
SNAPOFFS 0.000 // ...
LENGTH 8.815 // ...
LOOP 1 // ...
ALLTAKES 0 // ...
SEL 1 // ...
FADEIN 1 0.0 0.0 // ...
FADEOUT 1 0.0 0.0 // ...
MUTE 0 // ...
IGUID {967EE770-4144-472A-89D6-B72BB910A916} // ...
NAME "MIDI item" // ...
VOLPAN 1.0 0.0 1.0 -1.0 // ...
SOFFS 0.000 0.000 // Slip offset (in seconds; the second field is always twice the first field)
PLAYRATE 1.000 1 0.000 -65536 // ...
CHANMODE 0 // ...
GUID {9C93A652-09A2-4A46-9E1B-EF83EB7CED29} // ...
<SOURCE MIDI // Source section start
HASDATA 1 960 QN // Does the item have any data? PPQ resolution in ticks per quarter note
e 300 90 2b 60 // Standard MIDI message
// field 1, e - selected, E - not selected
// field 2, int, msg start offset
// field 3, MIDI status byte (message type + channel number)
// 0x80 = Note Off, channel 0
// 0x9F = Note On, channel 15
// 0xB4 = Control Change, channel 4
// field 4, Data1, depends on the message type (eg. note number)
// field 5, Data2, depends on the message type (eg. velocity)
e 60 80 2b 00 // selected msg, offset 60, note off, note 2b, velocity 0
<X 286306 0 // SysEx section start (SysEx midi message, variable length)
// field 1, x - selected, X - not selected
// field 2, ??
// field 3, ??
8AECAwQF9w== // (Base64 encoded)
> // SysEx section end
E 540 b0 7b 00 // unselected msg, offset 540, Control Change , all notes off (cc123)
GUID {9DAB52C8-6257-4A4E-9E60-323514C0DB9B} // Take id
IGNTEMPO 0 120.00000000 4 4 // Ignore project tempo, override with new settings
// field 1, int, ignore on/off
// field 2, float, tempo used to override project tempo
// field 3-4, int, time signature to override project time signature
VELLANE 128 97 0 // Velocity/CC lane settings
// field 1, int, lane type
// -1 = velocity
// 0-119 = CC #0 - CC #119
// 128 = pitch bend
// 129 = program
// 130 = channel pressure
// 131 = bank/program select
// 132 = text events
// 133 = sysex
// 166 = notaion events
// field 2, int, height of the lane in MIDI editor mode
// field 3, int, height of the lane in inline editor mode
BANKPROGRAMFILE "C:\Path\To\GM.reabank" // Path to ReaBank file used by the current item
CFGEDITVIEW 3787.8 0.1 0 48 0 0 0 // Somehow related to H/V zoom levels and scrollbar positions
CFGEDIT 1 1 0 1 1 16 1 1 1 1 1 0.06250000 0 0 // MIDI editor window configuration data
1024 768 0 2 0 0 0.00000000 0 0 0 1 1 64 // field 1, int, ??
// field 2, int (bool), sync editor transport to project transport
// field 3, int, ??
// field 4, int (bool), show velocity handles
// field 5, int (bool), show note names
// field 6, int, MIDI editor view mode
// 0 = piano roll, rectangle
// 1 = named notes, rectangle
// 5 = event list, rectangle
// 8 = piano roll, triangle
// 9 = named notes, triangle
// 13 = event list, triangle
// 16 = piano roll, diamond
// 17 = named notes, diamond
// 21 = event list, diamond
// field 7, int, ??
// field 8, int (bool), move CCs with notes
// field 9, int, channel for new events
// field 10, int (bool), snap to grid
// field 11, int (bool), show grid
// field 12, float, grid length, in quarter notes
// field 13, field 14, int, (last-used UNmaximized) X and Y coords
// of upper left corner of ME window
// field 15, field 16, int, (last-used UNmaximized) X and Y coords
// of bottom right corner of ME window
// field 17, int (bool), dock editor window
// field 18, int, note row view modes
// 0 = show all rows
// 1 = hide unused rows
// 2 = hide unused and unnamed rows
// field 19, int, state of Timebase setting
// 0 = project beats
// 1 = project sync
// 2 = project time
// 4 = source beats
// field 20, int, state of Color mode setting
// 0 = velocity
// 1 = channel
// 2 = pitch
// 4 = source
// field 21, float, note length of last drawn note in beats.ticks
// if the option 'Drawing or selecting a note sets the new note length'
// is enabled because it changes 'Note:' setting in the pull-up menu
// at the bottom of the MIDI Editor window, or if the setting is changed
// manually
// field 22, int, re-use editor window
// 0 = off
// 1 = re-use MIDI editor window
// 2 = re-use MIDI editor window, keeping current item secondary
// field 23, int (bool), show velocity numbers
// field 24, int (bool), ME window maximized to full-screen
// field 25, int (bool), swing enabled
// field 26, float, swing % as fraction
// field 27 ??
// field 28 ??
// field 29 ??
// field 30 ??
EVTFILTER 0 -1 -1 -1 -1 0 1 // Event filter settings
// field 1, int (16-bit mask), state of channel checkboxes
// 0000000000000000 (0) - "All" is checked, 1-16 unchecked
// 1111111111111111 (65536) - "All" is checked along with 1-16
// 1000000000000001 (32769) - 1 (LSB) and 16 (MSB) are selected
// etc.
// field 2, int, Event type
// -1 = <all>
// 144 = Note
// 160 = Poly Aftertouch
// 176 = Control Change (CC)
// 192 = Program Change (PC)
// 208 = Channel Aftertouch
// 224 = Pitch
// 240 = Sysex/Meta
// field 3, int, parameter field (range: 0-127)
// field 4, int, value Low field (range: 0-127)
// field 5, int, value High field (range: 0-127)
// field 6, int, draw events on channel setting (range: 0-15)
// field 7, int (bool), enable filter
> // Source section end
> // Item section end
MIDI Event -> field 2 above... This is the number of ticks (it's ok, I'll tell you in a minute) since the last event or (if this is the first MIDI Event) the start of the Item.
Ticks then. A tick is a small slice of a beat, so the number of Ticks per second varies with the BPM (Beats Per Minute) of the music.
<wiki math markup> <math>1 beat = 2.6041666666666666666666666666667e-4 \times 240 \times 16</math> </wiki math markup>
1 beat = 2.6041666666666666666666666666667e-4 * 240 * 16
The MIDI format used in REAPER State Chunks and .rpp files is documented here State Chunk And RPP MIDI Format.
--------------------------------------------------------------------------------------------------------------------
Envelope
Envelopes appear to share most of their characteristics though there may be some differences in how point values are used. Needs more testing
Envelope types include:
VOLENV - Track (pre FX)/Take volume (0.0 to 2.0)
VOLENV2 - Track (post FX) volume (0.0 to 2.0)
VOLENV3 - Track trim volume (0 to 2)
PANENV - Track (pre FX)/Take pan (-1.0 to 1.0)
PANENV2 - Track (post FX) pan (-1.0 to 1.0)
DUALPANENVL - Track pan (left) (pre-FX) (-1 to 1) in 'Dual pan' pan mode
DUALPANENV - Track pan (right) (pre-FX) (-1 to 1) in 'Dual pan' pan mode
DUALPANENVL2 - Track pan (left) (-1 to 1) in 'Dual pan' pan mode
DUALPANENV2 - Track pan (right) (-1 to 1) in 'Dual pan' pan mode
WIDTHENV - Track (pre FX) stereo width (-1 to 1) in 'Stereo pan' pan mode
WIDTHENV2 - Track stereo width (-1 to 1) in 'Stereo pan' pan mode
MUTEENV - Track mute (0.0 to 1.0)
AUXVOLENV - Track send volume (0.0 to 2.0)
AUXPANENV - Track sendpan (-1.0 to 1.0)
AUXMUTEENV - Track send mute (0.0 to 1.0)
TEMPOENVEX - Master tempo
MASTERVOLENV - Master volume (0.0 to 2.0)
MASTERPANENV - Master pan (pre FX) (-1 to 1.0)
MASTERVOLENV2 - Master volume (post FX) (0.0 to 2.0)
MASTERPANENV2 - Master pan (post FX) (-1 to 1.0)
MASTERVOLENV3 - Master trim (0.0 to 2.0)
MASTERWIDTHENV - Master (pre FX) stereo width (-1 to 1) in 'Stereo pan' pan mode
MASTERWIDTHENV2 - Master stereo width (-1 to 1) in 'Stereo pan' pan mode
MASTERPLAYSPEEDENV - Master playrate
PARMENV - Plugin parameter (value range is defined by additional parameters after type tag)
<VOLENV2 // Type. PARMENV has additional fields on this line (see below)
EGUID {1A24257D-0EE1-4D1C-8BF7-7D795608ED97} // Envelope GUID
ACT 1 -1 // field 1, int (bool) Active, field 2 ??
VIS 1 1 1.0 // Visibility
// field 1, int (bool), visible
// field 2, int (bool), show in lane
// field 3, deprecated value, always 1.0 (source: schwa [p=2198426])
LANEHEIGHT 0 0 // Lane height
// field 1, int, height in pixels, corresponds to the value associated
// with 'I_TCPH' parameter of GetEnvelopeInfo_Value() function
// which is envelope control panel height including padding between
// it and the lower env control panel
// field 2, int, ??
ARM 1 // Armed, int (bool)
DEFSHAPE 0 -1 -1 // field 1 - Default point shape, int
// 0 = Linear
// 1 = Square
// 2 = Slow Start/End
// 3 = Fast Start
// 4 = Fast End
// 5 = Bezier
// field 2, int, pitch envelope range
// field 3, int, pitch envelope snap setting
// -1=global default, otherwise these are the LSB and MSB of the "pitchenvrange"
// config variable, i.e. Preferences -> Editing Behavior -> Envelope Display ->
// Default pitch envelope range: ... semitones, snap: ...
// (source: schwa [p=2198426])
<EXT // Extension-specific persistent data which can be added
// with GetSetEnvelopeInfo_String() function
// using 'P_EXT' parameter
parmname string // field 1, string - parmname, set with the function namesake argument
> // field 2, string - string, set with the function stringNeedBig argument;
// to delete, pass this argument as an empty string
POOLEDENVINST 6 1.375 0.39917615841563 0.114936 0.354826 1 0.5 1 1 0 0 1280 0 0 0.012 0 // Automation item (AI) properties
// field 1, int, pool index,
// pooled instances have the same index
// (greater by 1 than the one displayed
// by default in the Name field of AI
// Properties window);
// field 2, float/double, Position (sec);
// field 3, float/double, Length (sec);
// field 4, float/double,
// Start offset (sec);
// field 5, float/double, Play rate;
// field 6, int (bool), selected;
// field 7, float, Baseline, 0 = -100,
// 0.5 = 0, 1 = 100;
// field 8, float, Amplitude, -2 = -200,
// 1 = 100, 2 = 200;
// Baseline/amplitude affects pooled
// copies;
// field 9, int (bool), Loop, 1 on, 0 off
// field 10, float/double, Position in QN
// (only used in certain contexts);
// field 11, Length in QN
// (only used in certain contexts);
// field 12, int, 1 based index of AI
// since starting the project, incremented