Add support for Latch Automation
[ardour.git] / libs / ardour / enums.cc
1 /*
2     Copyright (C) 2000-2007 Paul Davis
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #include "pbd/enumwriter.h"
21 #include "midi++/types.h"
22
23 #include "evoral/Range.hpp" // shouldn't Evoral have its own enum registration?
24
25 #include "ardour/delivery.h"
26 #include "ardour/diskstream.h"
27 #include "ardour/export_channel.h"
28 #include "ardour/export_filename.h"
29 #include "ardour/export_format_base.h"
30 #include "ardour/export_profile_manager.h"
31 #include "ardour/io.h"
32 #include "ardour/location.h"
33 #include "ardour/midi_model.h"
34 #include "ardour/mode.h"
35 #include "ardour/mute_master.h"
36 #include "ardour/presentation_info.h"
37 #include "ardour/session.h"
38 #include "ardour/source.h"
39 #include "ardour/tempo.h"
40 #include "ardour/track.h"
41 #include "ardour/types.h"
42
43 using namespace std;
44 using namespace PBD;
45 using namespace ARDOUR;
46 using namespace MIDI;
47 using namespace Timecode;
48
49 namespace ARDOUR {
50
51 void
52 setup_enum_writer ()
53 {
54         EnumWriter& enum_writer (EnumWriter::instance());
55         vector<int> i;
56         vector<string> s;
57
58         AlignStyle _AlignStyle;
59         AlignChoice _AlignChoice;
60         MeterPoint _MeterPoint;
61         MeterType _MeterType;
62         TrackMode _TrackMode;
63         NoteMode _NoteMode;
64         ChannelMode _ChannelMode;
65         ColorMode _ColorMode;
66         MeterFalloff _MeterFalloff;
67         MeterHold _MeterHold;
68         VUMeterStandard _VUMeterStandard;
69         MeterLineUp _MeterLineUp;
70         EditMode _EditMode;
71         RegionPoint _RegionPoint;
72         Placement _Placement;
73         MonitorModel _MonitorModel;
74         MonitorChoice _MonitorChoice;
75         MonitorState _MonitorState;
76         PFLPosition _PFLPosition;
77         AFLPosition _AFLPosition;
78         DenormalModel _DenormalModel;
79         LayerModel _LayerModel;
80         InsertMergePolicy _InsertMergePolicy;
81         ListenPosition _ListenPosition;
82         SampleFormat _SampleFormat;
83         CDMarkerFormat _CDMarkerFormat;
84         HeaderFormat _HeaderFormat;
85         PluginType _PluginType;
86         SyncSource _SyncSource;
87         ShuttleBehaviour _ShuttleBehaviour;
88         ShuttleUnits _ShuttleUnits;
89         Session::RecordState _Session_RecordState;
90         SessionEvent::Type _SessionEvent_Type;
91         SessionEvent::Action _SessionEvent_Action;
92         TimecodeFormat _Session_TimecodeFormat;
93         Session::PullupFormat _Session_PullupFormat;
94         FadeShape _FadeShape;
95         RegionSelectionAfterSplit _RegionSelectionAfterSplit;
96         IOChange _IOChange;
97         AutomationType _AutomationType;
98         AutoState _AutoState;
99         AutoConnectOption _AutoConnectOption;
100         TracksAutoNamingRule _TracksAutoNamingRule;
101         Session::StateOfTheState _Session_StateOfTheState;
102         Source::Flag _Source_Flag;
103         Diskstream::Flag _Diskstream_Flag;
104         Location::Flags _Location_Flags;
105         PositionLockStyle _PositionLockStyle;
106         TempoSection::Type _TempoSection_Type;
107         Track::FreezeState _Track_FreezeState;
108         AutomationList::InterpolationStyle _AutomationList_InterpolationStyle;
109         AnyTime::Type _AnyTime_Type;
110         ExportFilename::TimeFormat _ExportFilename_TimeFormat;
111         ExportFilename::DateFormat _ExportFilename_DateFormat;
112         ExportFormatBase::Type _ExportFormatBase_Type;
113         ExportFormatBase::FormatId _ExportFormatBase_FormatId;
114         ExportFormatBase::Endianness _ExportFormatBase_Endianness;
115         ExportFormatBase::SampleFormat _ExportFormatBase_SampleFormat;
116         ExportFormatBase::DitherType _ExportFormatBase_DitherType;
117         ExportFormatBase::Quality _ExportFormatBase_Quality;
118         ExportFormatBase::SampleRate _ExportFormatBase_SampleRate;
119         ExportFormatBase::SRCQuality _ExportFormatBase_SRCQuality;
120         ExportProfileManager::TimeFormat _ExportProfileManager_TimeFormat;
121         RegionExportChannelFactory::Type _RegionExportChannelFactory_Type;
122         Delivery::Role _Delivery_Role;
123         IO::Direction _IO_Direction;
124         MuteMaster::MutePoint _MuteMaster_MutePoint;
125         MidiModel::NoteDiffCommand::Property _MidiModel_NoteDiffCommand_Property;
126         MidiModel::SysExDiffCommand::Property _MidiModel_SysExDiffCommand_Property;
127         MidiModel::PatchChangeDiffCommand::Property _MidiModel_PatchChangeDiffCommand_Property;
128         WaveformScale _WaveformScale;
129         WaveformShape _WaveformShape;
130         Session::PostTransportWork _Session_PostTransportWork;
131         Session::SlaveState _Session_SlaveState;
132         MTC_Status _MIDI_MTC_Status;
133         Evoral::OverlapType _OverlapType;
134     BufferingPreset _BufferingPreset;
135         AutoReturnTarget _AutoReturnTarget;
136         PresentationInfo::Flag _PresentationInfo_Flag;
137         MusicalMode::Type mode;
138         MidiPortFlags _MidiPortFlags;
139
140 #define REGISTER(e) enum_writer.register_distinct (typeid(e).name(), i, s); i.clear(); s.clear()
141 #define REGISTER_BITS(e) enum_writer.register_bits (typeid(e).name(), i, s); i.clear(); s.clear()
142 #define REGISTER_ENUM(e) i.push_back (e); s.push_back (#e)
143 #define REGISTER_CLASS_ENUM(t,e) i.push_back (t::e); s.push_back (#e)
144
145         REGISTER_ENUM (NullAutomation);
146         REGISTER_ENUM (GainAutomation);
147         REGISTER_ENUM (PanAzimuthAutomation);
148         REGISTER_ENUM (PanElevationAutomation);
149         REGISTER_ENUM (PanWidthAutomation);
150         REGISTER_ENUM (PanFrontBackAutomation);
151         REGISTER_ENUM (PanLFEAutomation);
152         REGISTER_ENUM (PluginAutomation);
153         REGISTER_ENUM (PluginPropertyAutomation);
154         REGISTER_ENUM (SoloAutomation);
155         REGISTER_ENUM (SoloIsolateAutomation);
156         REGISTER_ENUM (SoloSafeAutomation);
157         REGISTER_ENUM (MuteAutomation);
158         REGISTER_ENUM (MidiCCAutomation);
159         REGISTER_ENUM (MidiPgmChangeAutomation);
160         REGISTER_ENUM (MidiPitchBenderAutomation);
161         REGISTER_ENUM (MidiChannelPressureAutomation);
162         REGISTER_ENUM (MidiNotePressureAutomation);
163         REGISTER_ENUM (MidiSystemExclusiveAutomation);
164         REGISTER_ENUM (FadeInAutomation);
165         REGISTER_ENUM (FadeOutAutomation);
166         REGISTER_ENUM (EnvelopeAutomation);
167         REGISTER_ENUM (RecEnableAutomation);
168         REGISTER_ENUM (RecSafeAutomation);
169         REGISTER_ENUM (TrimAutomation);
170         REGISTER_ENUM (PhaseAutomation);
171         REGISTER_ENUM (MonitoringAutomation);
172         REGISTER_ENUM (BusSendLevel);
173         REGISTER_ENUM (BusSendEnable);
174         REGISTER (_AutomationType);
175
176         REGISTER_ENUM (Off);
177         REGISTER_ENUM (Write);
178         REGISTER_ENUM (Touch);
179         REGISTER_ENUM (Play);
180         REGISTER_ENUM (Latch);
181         REGISTER_BITS (_AutoState);
182
183         REGISTER_ENUM (CaptureTime);
184         REGISTER_ENUM (ExistingMaterial);
185         REGISTER (_AlignStyle);
186
187         REGISTER_ENUM (UseCaptureTime);
188         REGISTER_ENUM (UseExistingMaterial);
189         REGISTER_ENUM (Automatic);
190         REGISTER (_AlignChoice);
191
192         REGISTER_ENUM (MeterInput);
193         REGISTER_ENUM (MeterPreFader);
194         REGISTER_ENUM (MeterPostFader);
195         REGISTER_ENUM (MeterOutput);
196         REGISTER_ENUM (MeterCustom);
197         REGISTER (_MeterPoint);
198
199         REGISTER_ENUM (MeterMaxSignal);
200         REGISTER_ENUM (MeterMaxPeak);
201         REGISTER_ENUM (MeterPeak);
202         REGISTER_ENUM (MeterKrms);
203         REGISTER_ENUM (MeterK20);
204         REGISTER_ENUM (MeterK14);
205         REGISTER_ENUM (MeterK12);
206         REGISTER_ENUM (MeterIEC1DIN);
207         REGISTER_ENUM (MeterIEC1NOR);
208         REGISTER_ENUM (MeterIEC2BBC);
209         REGISTER_ENUM (MeterIEC2EBU);
210         REGISTER_ENUM (MeterVU);
211         REGISTER_ENUM (MeterPeak0dB);
212         REGISTER_ENUM (MeterMCP);
213         REGISTER (_MeterType);
214
215         REGISTER_ENUM (Normal);
216         REGISTER_ENUM (NonLayered);
217         REGISTER_ENUM (Destructive);
218         REGISTER (_TrackMode);
219
220         REGISTER_ENUM (Sustained);
221         REGISTER_ENUM (Percussive);
222         REGISTER (_NoteMode);
223
224         REGISTER_ENUM (AllChannels);
225         REGISTER_ENUM (FilterChannels);
226         REGISTER_ENUM (ForceChannel);
227         REGISTER (_ChannelMode);
228
229         REGISTER_ENUM (MeterColors);
230         REGISTER_ENUM (ChannelColors);
231         REGISTER_ENUM (TrackColor);
232         REGISTER (_ColorMode);
233
234         REGISTER_ENUM (MeterFalloffOff);
235         REGISTER_ENUM (MeterFalloffSlowest);
236         REGISTER_ENUM (MeterFalloffSlow);
237         REGISTER_ENUM (MeterFalloffSlowish);
238         REGISTER_ENUM (MeterFalloffModerate);
239         REGISTER_ENUM (MeterFalloffMedium);
240         REGISTER_ENUM (MeterFalloffFast);
241         REGISTER_ENUM (MeterFalloffFaster);
242         REGISTER_ENUM (MeterFalloffFastest);
243         REGISTER (_MeterFalloff);
244
245         REGISTER_ENUM (MeterHoldOff);
246         REGISTER_ENUM (MeterHoldShort);
247         REGISTER_ENUM (MeterHoldMedium);
248         REGISTER_ENUM (MeterHoldLong);
249         REGISTER (_MeterHold);
250
251         REGISTER_ENUM (MeteringVUfrench);
252         REGISTER_ENUM (MeteringVUamerican);
253         REGISTER_ENUM (MeteringVUstandard);
254         REGISTER_ENUM (MeteringVUeight);
255         REGISTER (_VUMeterStandard);
256
257         REGISTER_ENUM (MeteringLineUp24);
258         REGISTER_ENUM (MeteringLineUp20);
259         REGISTER_ENUM (MeteringLineUp18);
260         REGISTER_ENUM (MeteringLineUp15);
261         REGISTER (_MeterLineUp);
262
263         REGISTER_ENUM (Slide);
264         REGISTER_ENUM (Splice);
265         REGISTER_ENUM (Ripple); // XXX do the old enum values have to stay in order?
266         REGISTER_ENUM (Lock);
267         REGISTER (_EditMode);
268         /*
269          * Splice mode is undefined, undocumented, and basically fubar'ed
270          * perhaps someday we will make it work.  but for now, avoid it
271         */
272         enum_writer.add_to_hack_table ("Splice", "Slide");
273
274         REGISTER_ENUM (Start);
275         REGISTER_ENUM (End);
276         REGISTER_ENUM (SyncPoint);
277         REGISTER (_RegionPoint);
278
279         REGISTER_ENUM (PreFader);
280         REGISTER_ENUM (PostFader);
281         REGISTER (_Placement);
282
283         REGISTER_ENUM (HardwareMonitoring);
284         REGISTER_ENUM (SoftwareMonitoring);
285         REGISTER_ENUM (ExternalMonitoring);
286         REGISTER (_MonitorModel);
287
288         REGISTER_ENUM (MonitorInput);
289         REGISTER_ENUM (MonitorDisk);
290         REGISTER_ENUM (MonitorAuto);
291         REGISTER_ENUM (MonitorCue);
292         REGISTER_BITS (_MonitorChoice);
293
294         REGISTER_ENUM (MonitoringInput);
295         REGISTER_ENUM (MonitoringDisk);
296         REGISTER_ENUM (MonitoringSilence);
297         REGISTER_BITS (_MonitorState);
298
299         REGISTER_ENUM (PFLFromBeforeProcessors);
300         REGISTER_ENUM (PFLFromAfterProcessors);
301         REGISTER (_PFLPosition);
302
303         REGISTER_ENUM (AFLFromBeforeProcessors);
304         REGISTER_ENUM (AFLFromAfterProcessors);
305         REGISTER (_AFLPosition);
306
307         REGISTER_ENUM (DenormalNone);
308         REGISTER_ENUM (DenormalFTZ);
309         REGISTER_ENUM (DenormalDAZ);
310         REGISTER_ENUM (DenormalFTZDAZ);
311         REGISTER (_DenormalModel);
312
313         /*
314          * EditorOrdered has been deprecated
315          * since the removal of independent
316          * editor / mixer ordering.
317         */
318         enum_writer.add_to_hack_table ("EditorOrdered", "MixerOrdered");
319
320         REGISTER_ENUM (LaterHigher);
321         REGISTER_ENUM (Manual);
322         REGISTER (_LayerModel);
323
324         REGISTER_ENUM (InsertMergeReject);
325         REGISTER_ENUM (InsertMergeRelax);
326         REGISTER_ENUM (InsertMergeReplace);
327         REGISTER_ENUM (InsertMergeTruncateExisting);
328         REGISTER_ENUM (InsertMergeTruncateAddition);
329         REGISTER_ENUM (InsertMergeExtend);
330         REGISTER (_InsertMergePolicy);
331
332         REGISTER_ENUM (AfterFaderListen);
333         REGISTER_ENUM (PreFaderListen);
334         REGISTER (_ListenPosition);
335
336         REGISTER_ENUM (AutoConnectPhysical);
337         REGISTER_ENUM (AutoConnectMaster);
338         REGISTER_BITS (_AutoConnectOption);
339
340         REGISTER_ENUM (UseDefaultNames);
341         REGISTER_ENUM (NameAfterDriver);
342         REGISTER_BITS (_TracksAutoNamingRule);
343
344         REGISTER_ENUM (FormatFloat);
345         REGISTER_ENUM (FormatInt24);
346         REGISTER_ENUM (FormatInt16);
347         REGISTER (_SampleFormat);
348
349         REGISTER_ENUM (CDMarkerNone);
350         REGISTER_ENUM (CDMarkerCUE);
351         REGISTER_ENUM (CDMarkerTOC);
352         REGISTER (_CDMarkerFormat);
353
354         REGISTER_ENUM (BWF);
355         REGISTER_ENUM (WAVE);
356         REGISTER_ENUM (WAVE64);
357         REGISTER_ENUM (CAF);
358         REGISTER_ENUM (AIFF);
359         REGISTER_ENUM (iXML);
360         REGISTER_ENUM (RF64);
361         REGISTER_ENUM (RF64_WAV);
362         REGISTER_ENUM (MBWF);
363         REGISTER (_HeaderFormat);
364
365         REGISTER_ENUM (AudioUnit);
366         REGISTER_ENUM (LADSPA);
367         REGISTER_ENUM (LV2);
368         REGISTER_ENUM (Windows_VST);
369         REGISTER_ENUM (LXVST);
370         REGISTER_ENUM (MacVST);
371         REGISTER_ENUM (Lua);
372         REGISTER (_PluginType);
373
374         REGISTER_ENUM (MTC);
375         REGISTER_ENUM (JACK);
376         REGISTER_ENUM (Engine);
377         REGISTER_ENUM (MIDIClock);
378         REGISTER_ENUM (LTC);
379         REGISTER (_SyncSource);
380
381         REGISTER_ENUM (Sprung);
382         REGISTER_ENUM (Wheel);
383         REGISTER (_ShuttleBehaviour);
384
385         REGISTER_ENUM (Percentage);
386         REGISTER_ENUM (Semitones);
387         REGISTER (_ShuttleUnits);
388
389         REGISTER_CLASS_ENUM (Session, Disabled);
390         REGISTER_CLASS_ENUM (Session, Enabled);
391         REGISTER_CLASS_ENUM (Session, Recording);
392         REGISTER (_Session_RecordState);
393
394         REGISTER_CLASS_ENUM (SessionEvent, SetTransportSpeed);
395         REGISTER_CLASS_ENUM (SessionEvent, SetTrackSpeed);
396         REGISTER_CLASS_ENUM (SessionEvent, Locate);
397         REGISTER_CLASS_ENUM (SessionEvent, LocateRoll);
398         REGISTER_CLASS_ENUM (SessionEvent, LocateRollLocate);
399         REGISTER_CLASS_ENUM (SessionEvent, SetLoop);
400         REGISTER_CLASS_ENUM (SessionEvent, PunchIn);
401         REGISTER_CLASS_ENUM (SessionEvent, PunchOut);
402         REGISTER_CLASS_ENUM (SessionEvent, RangeStop);
403         REGISTER_CLASS_ENUM (SessionEvent, RangeLocate);
404         REGISTER_CLASS_ENUM (SessionEvent, Overwrite);
405         REGISTER_CLASS_ENUM (SessionEvent, SetSyncSource);
406         REGISTER_CLASS_ENUM (SessionEvent, Audition);
407         REGISTER_CLASS_ENUM (SessionEvent, InputConfigurationChange);
408         REGISTER_CLASS_ENUM (SessionEvent, SetPlayAudioRange);
409         REGISTER_CLASS_ENUM (SessionEvent, CancelPlayAudioRange);
410         REGISTER_CLASS_ENUM (SessionEvent, RealTimeOperation);
411         REGISTER_CLASS_ENUM (SessionEvent, AdjustPlaybackBuffering);
412         REGISTER_CLASS_ENUM (SessionEvent, AdjustCaptureBuffering);
413         REGISTER_CLASS_ENUM (SessionEvent, SetTimecodeTransmission);
414         REGISTER_CLASS_ENUM (SessionEvent, Skip);
415         REGISTER_CLASS_ENUM (SessionEvent, StopOnce);
416         REGISTER_CLASS_ENUM (SessionEvent, AutoLoop);
417         REGISTER_CLASS_ENUM (SessionEvent, AutoLoopDeclick);
418         REGISTER (_SessionEvent_Type);
419
420         REGISTER_CLASS_ENUM (SessionEvent, Add);
421         REGISTER_CLASS_ENUM (SessionEvent, Remove);
422         REGISTER_CLASS_ENUM (SessionEvent, Replace);
423         REGISTER_CLASS_ENUM (SessionEvent, Clear);
424         REGISTER (_SessionEvent_Action);
425
426         REGISTER_CLASS_ENUM (Session, Stopped);
427         REGISTER_CLASS_ENUM (Session, Waiting);
428         REGISTER_CLASS_ENUM (Session, Running);
429         REGISTER (_Session_SlaveState);
430
431         REGISTER_ENUM (MTC_Stopped);
432         REGISTER_ENUM (MTC_Forward);
433         REGISTER_ENUM (MTC_Backward);
434         REGISTER (_MIDI_MTC_Status);
435
436         REGISTER_CLASS_ENUM (Session, PostTransportStop);
437         REGISTER_CLASS_ENUM (Session, PostTransportDuration);
438         REGISTER_CLASS_ENUM (Session, PostTransportLocate);
439         REGISTER_CLASS_ENUM (Session, PostTransportRoll);
440         REGISTER_CLASS_ENUM (Session, PostTransportAbort);
441         REGISTER_CLASS_ENUM (Session, PostTransportOverWrite);
442         REGISTER_CLASS_ENUM (Session, PostTransportSpeed);
443         REGISTER_CLASS_ENUM (Session, PostTransportAudition);
444         REGISTER_CLASS_ENUM (Session, PostTransportReverse);
445         REGISTER_CLASS_ENUM (Session, PostTransportInputChange);
446         REGISTER_CLASS_ENUM (Session, PostTransportCurveRealloc);
447         REGISTER_CLASS_ENUM (Session, PostTransportClearSubstate);
448         REGISTER_BITS (_Session_PostTransportWork);
449
450         REGISTER_CLASS_ENUM (Session, Clean);
451         REGISTER_CLASS_ENUM (Session, Dirty);
452         REGISTER_CLASS_ENUM (Session, CannotSave);
453         REGISTER_CLASS_ENUM (Session, Deletion);
454         REGISTER_CLASS_ENUM (Session, InitialConnecting);
455         REGISTER_CLASS_ENUM (Session, Loading);
456         REGISTER_CLASS_ENUM (Session, InCleanup);
457         REGISTER_BITS (_Session_StateOfTheState);
458
459         REGISTER_ENUM (timecode_23976);
460         REGISTER_ENUM (timecode_24);
461         REGISTER_ENUM (timecode_24976);
462         REGISTER_ENUM (timecode_25);
463         REGISTER_ENUM (timecode_2997);
464         REGISTER_ENUM (timecode_2997drop);
465         REGISTER_ENUM (timecode_30);
466         REGISTER_ENUM (timecode_30drop);
467         REGISTER_ENUM (timecode_5994);
468         REGISTER_ENUM (timecode_60);
469         REGISTER (_Session_TimecodeFormat);
470
471         REGISTER_CLASS_ENUM (Session, pullup_Plus4Plus1);
472         REGISTER_CLASS_ENUM (Session, pullup_Plus4);
473         REGISTER_CLASS_ENUM (Session, pullup_Plus4Minus1);
474         REGISTER_CLASS_ENUM (Session, pullup_Plus1);
475         REGISTER_CLASS_ENUM (Session, pullup_None);
476         REGISTER_CLASS_ENUM (Session, pullup_Minus1);
477         REGISTER_CLASS_ENUM (Session, pullup_Minus4Plus1);
478         REGISTER_CLASS_ENUM (Session, pullup_Minus4);
479         REGISTER_CLASS_ENUM (Session, pullup_Minus4Minus1);
480         REGISTER (_Session_PullupFormat);
481
482         REGISTER_CLASS_ENUM (Source, Writable);
483         REGISTER_CLASS_ENUM (Source, CanRename);
484         REGISTER_CLASS_ENUM (Source, Broadcast);
485         REGISTER_CLASS_ENUM (Source, Removable);
486         REGISTER_CLASS_ENUM (Source, RemovableIfEmpty);
487         REGISTER_CLASS_ENUM (Source, RemoveAtDestroy);
488         REGISTER_CLASS_ENUM (Source, NoPeakFile);
489         REGISTER_CLASS_ENUM (Source, Destructive);
490         REGISTER_CLASS_ENUM (Source, Empty);
491         REGISTER_BITS (_Source_Flag);
492
493         REGISTER_ENUM (FadeLinear);
494         REGISTER_ENUM (FadeFast);
495         REGISTER_ENUM (FadeSlow);
496         REGISTER_ENUM (FadeConstantPower);
497         REGISTER_ENUM (FadeSymmetric);
498         REGISTER (_FadeShape);
499
500         REGISTER_ENUM(None);
501         REGISTER_ENUM(NewlyCreatedLeft);
502         REGISTER_ENUM(NewlyCreatedRight);
503         REGISTER_ENUM(NewlyCreatedBoth);
504         REGISTER_ENUM(Existing);
505         REGISTER_ENUM(ExistingNewlyCreatedLeft);
506         REGISTER_ENUM(ExistingNewlyCreatedRight);
507         REGISTER_ENUM(ExistingNewlyCreatedBoth);
508         REGISTER (_RegionSelectionAfterSplit);
509
510         REGISTER_CLASS_ENUM (Diskstream, Recordable);
511         REGISTER_CLASS_ENUM (Diskstream, Hidden);
512         REGISTER_CLASS_ENUM (Diskstream, Destructive);
513         REGISTER_BITS (_Diskstream_Flag);
514
515         REGISTER_CLASS_ENUM (Location, IsMark);
516         REGISTER_CLASS_ENUM (Location, IsAutoPunch);
517         REGISTER_CLASS_ENUM (Location, IsAutoLoop);
518         REGISTER_CLASS_ENUM (Location, IsHidden);
519         REGISTER_CLASS_ENUM (Location, IsCDMarker);
520         REGISTER_CLASS_ENUM (Location, IsSessionRange);
521         REGISTER_CLASS_ENUM (Location, IsRangeMarker);
522         REGISTER_CLASS_ENUM (Location, IsSkip);
523         REGISTER_BITS (_Location_Flags);
524
525         REGISTER_CLASS_ENUM (TempoSection, Ramp);
526         REGISTER_CLASS_ENUM (TempoSection, Constant);
527         REGISTER (_TempoSection_Type);
528
529         REGISTER_CLASS_ENUM (Track, NoFreeze);
530         REGISTER_CLASS_ENUM (Track, Frozen);
531         REGISTER_CLASS_ENUM (Track, UnFrozen);
532         REGISTER (_Track_FreezeState);
533
534         REGISTER_CLASS_ENUM (AutomationList, Discrete);
535         REGISTER_CLASS_ENUM (AutomationList, Linear);
536         REGISTER_CLASS_ENUM (AutomationList, Curved);
537         REGISTER_CLASS_ENUM (AutomationList, Logarithmic);
538         REGISTER_CLASS_ENUM (AutomationList, Exponential);
539         REGISTER (_AutomationList_InterpolationStyle);
540
541         REGISTER_CLASS_ENUM (AnyTime, Timecode);
542         REGISTER_CLASS_ENUM (AnyTime, BBT);
543         REGISTER_CLASS_ENUM (AnyTime, Frames);
544         REGISTER_CLASS_ENUM (AnyTime, Seconds);
545         REGISTER (_AnyTime_Type);
546
547         REGISTER_CLASS_ENUM (ExportFilename, D_None);
548         REGISTER_CLASS_ENUM (ExportFilename, D_ISO);
549         REGISTER_CLASS_ENUM (ExportFilename, D_ISOShortY);
550         REGISTER_CLASS_ENUM (ExportFilename, D_BE);
551         REGISTER_CLASS_ENUM (ExportFilename, D_BEShortY);
552         REGISTER (_ExportFilename_DateFormat);
553
554         REGISTER_CLASS_ENUM (ExportFilename, T_None);
555         REGISTER_CLASS_ENUM (ExportFilename, T_NoDelim);
556         REGISTER_CLASS_ENUM (ExportFilename, T_Delim);
557         REGISTER (_ExportFilename_TimeFormat);
558
559         REGISTER_CLASS_ENUM (ExportFormatBase, T_None);
560         REGISTER_CLASS_ENUM (ExportFormatBase, T_Sndfile);
561         REGISTER (_ExportFormatBase_Type);
562
563         REGISTER_CLASS_ENUM (ExportFormatBase, F_None);
564         REGISTER_CLASS_ENUM (ExportFormatBase, F_WAV);
565         REGISTER_CLASS_ENUM (ExportFormatBase, F_W64);
566         REGISTER_CLASS_ENUM (ExportFormatBase, F_AIFF);
567         REGISTER_CLASS_ENUM (ExportFormatBase, F_AU);
568         REGISTER_CLASS_ENUM (ExportFormatBase, F_IRCAM);
569         REGISTER_CLASS_ENUM (ExportFormatBase, F_RAW);
570         REGISTER_CLASS_ENUM (ExportFormatBase, F_FLAC);
571         REGISTER_CLASS_ENUM (ExportFormatBase, F_Ogg);
572         REGISTER_CLASS_ENUM (ExportFormatBase, F_CAF);
573         REGISTER (_ExportFormatBase_FormatId);
574
575         REGISTER_CLASS_ENUM (ExportFormatBase, E_FileDefault);
576         REGISTER_CLASS_ENUM (ExportFormatBase, E_Little);
577         REGISTER_CLASS_ENUM (ExportFormatBase, E_Big);
578         REGISTER_CLASS_ENUM (ExportFormatBase, E_Cpu);
579         REGISTER (_ExportFormatBase_Endianness);
580
581         REGISTER_CLASS_ENUM (ExportFormatBase, SF_None);
582         REGISTER_CLASS_ENUM (ExportFormatBase, SF_8);
583         REGISTER_CLASS_ENUM (ExportFormatBase, SF_16);
584         REGISTER_CLASS_ENUM (ExportFormatBase, SF_24);
585         REGISTER_CLASS_ENUM (ExportFormatBase, SF_32);
586         REGISTER_CLASS_ENUM (ExportFormatBase, SF_U8);
587         REGISTER_CLASS_ENUM (ExportFormatBase, SF_Float);
588         REGISTER_CLASS_ENUM (ExportFormatBase, SF_Double);
589         REGISTER_CLASS_ENUM (ExportFormatBase, SF_Vorbis);
590         REGISTER (_ExportFormatBase_SampleFormat);
591
592         REGISTER_CLASS_ENUM (ExportFormatBase, D_None);
593         REGISTER_CLASS_ENUM (ExportFormatBase, D_Rect);
594         REGISTER_CLASS_ENUM (ExportFormatBase, D_Tri);
595         REGISTER_CLASS_ENUM (ExportFormatBase, D_Shaped);
596         REGISTER (_ExportFormatBase_DitherType);
597
598         REGISTER_CLASS_ENUM (ExportFormatBase, Q_None);
599         REGISTER_CLASS_ENUM (ExportFormatBase, Q_Any);
600         REGISTER_CLASS_ENUM (ExportFormatBase, Q_LosslessLinear);
601         REGISTER_CLASS_ENUM (ExportFormatBase, Q_LosslessCompression);
602         REGISTER_CLASS_ENUM (ExportFormatBase, Q_LossyCompression);
603         REGISTER (_ExportFormatBase_Quality);
604
605         REGISTER_CLASS_ENUM (ExportFormatBase, SR_None);
606         REGISTER_CLASS_ENUM (ExportFormatBase, SR_Session);
607         REGISTER_CLASS_ENUM (ExportFormatBase, SR_8);
608         REGISTER_CLASS_ENUM (ExportFormatBase, SR_22_05);
609         REGISTER_CLASS_ENUM (ExportFormatBase, SR_44_1);
610         REGISTER_CLASS_ENUM (ExportFormatBase, SR_48);
611         REGISTER_CLASS_ENUM (ExportFormatBase, SR_88_2);
612         REGISTER_CLASS_ENUM (ExportFormatBase, SR_96);
613         REGISTER_CLASS_ENUM (ExportFormatBase, SR_192);
614         REGISTER (_ExportFormatBase_SampleRate);
615
616         REGISTER_CLASS_ENUM (ExportFormatBase, SRC_SincBest);
617         REGISTER_CLASS_ENUM (ExportFormatBase, SRC_SincMedium);
618         REGISTER_CLASS_ENUM (ExportFormatBase, SRC_SincFast);
619         REGISTER_CLASS_ENUM (ExportFormatBase, SRC_ZeroOrderHold);
620         REGISTER_CLASS_ENUM (ExportFormatBase, SRC_Linear);
621         REGISTER (_ExportFormatBase_SRCQuality);
622
623         REGISTER_CLASS_ENUM (ExportProfileManager, Timecode);
624         REGISTER_CLASS_ENUM (ExportProfileManager, BBT);
625         REGISTER_CLASS_ENUM (ExportProfileManager, MinSec);
626         REGISTER_CLASS_ENUM (ExportProfileManager, Frames);
627         REGISTER (_ExportProfileManager_TimeFormat);
628
629         REGISTER_CLASS_ENUM (RegionExportChannelFactory, None);
630         REGISTER_CLASS_ENUM (RegionExportChannelFactory, Raw);
631         REGISTER_CLASS_ENUM (RegionExportChannelFactory, Fades);
632         REGISTER_CLASS_ENUM (RegionExportChannelFactory, Processed);
633         REGISTER (_RegionExportChannelFactory_Type);
634
635         REGISTER_CLASS_ENUM (Delivery, Insert);
636         REGISTER_CLASS_ENUM (Delivery, Send);
637         REGISTER_CLASS_ENUM (Delivery, Listen);
638         REGISTER_CLASS_ENUM (Delivery, Main);
639         REGISTER_CLASS_ENUM (Delivery, Aux);
640         REGISTER_BITS (_Delivery_Role);
641
642         REGISTER_CLASS_ENUM (MuteMaster, PreFader);
643         REGISTER_CLASS_ENUM (MuteMaster, PostFader);
644         REGISTER_CLASS_ENUM (MuteMaster, Listen);
645         REGISTER_CLASS_ENUM (MuteMaster, Main);
646         REGISTER_BITS (_MuteMaster_MutePoint);
647
648         REGISTER_CLASS_ENUM (IO, Input);
649         REGISTER_CLASS_ENUM (IO, Output);
650         REGISTER (_IO_Direction);
651
652         REGISTER_CLASS_ENUM (MidiModel::NoteDiffCommand, NoteNumber);
653         REGISTER_CLASS_ENUM (MidiModel::NoteDiffCommand, Channel);
654         REGISTER_CLASS_ENUM (MidiModel::NoteDiffCommand, Velocity);
655         REGISTER_CLASS_ENUM (MidiModel::NoteDiffCommand, StartTime);
656         REGISTER_CLASS_ENUM (MidiModel::NoteDiffCommand, Length);
657         REGISTER (_MidiModel_NoteDiffCommand_Property);
658
659         REGISTER_CLASS_ENUM (MidiModel::SysExDiffCommand, Time);
660         REGISTER (_MidiModel_SysExDiffCommand_Property);
661
662         REGISTER_CLASS_ENUM (MidiModel::PatchChangeDiffCommand, Time);
663         REGISTER_CLASS_ENUM (MidiModel::PatchChangeDiffCommand, Program);
664         REGISTER_CLASS_ENUM (MidiModel::PatchChangeDiffCommand, Bank);
665         REGISTER (_MidiModel_PatchChangeDiffCommand_Property);
666
667         REGISTER_ENUM(MidiPortMusic);
668         REGISTER_ENUM(MidiPortControl);
669         REGISTER_ENUM(MidiPortSelection);
670         REGISTER_BITS(_MidiPortFlags);
671
672         REGISTER_ENUM(Linear);
673         REGISTER_ENUM(Logarithmic);
674         REGISTER(_WaveformScale);
675
676         REGISTER_ENUM(Traditional);
677         REGISTER_ENUM(Rectified);
678         REGISTER(_WaveformShape);
679
680         REGISTER_ENUM(AudioTime);
681         REGISTER_ENUM(MusicTime);
682         REGISTER(_PositionLockStyle);
683
684         REGISTER_ENUM (Evoral::OverlapNone);
685         REGISTER_ENUM (Evoral::OverlapInternal);
686         REGISTER_ENUM (Evoral::OverlapStart);
687         REGISTER_ENUM (Evoral::OverlapEnd);
688         REGISTER_ENUM (Evoral::OverlapExternal);
689         REGISTER(_OverlapType);
690
691         REGISTER_ENUM (Small);
692         REGISTER_ENUM (Medium);
693         REGISTER_ENUM (Large);
694         REGISTER_ENUM (Custom);
695         REGISTER(_BufferingPreset);
696
697         REGISTER_ENUM (LastLocate);
698         REGISTER_ENUM (RangeSelectionStart);
699         REGISTER_ENUM (Loop);
700         REGISTER_ENUM (RegionSelectionStart);
701         REGISTER_BITS (_AutoReturnTarget);
702
703         REGISTER_CLASS_ENUM (PresentationInfo, AudioTrack);
704         REGISTER_CLASS_ENUM (PresentationInfo, MidiTrack);
705         REGISTER_CLASS_ENUM (PresentationInfo, AudioBus);
706         REGISTER_CLASS_ENUM (PresentationInfo, MidiBus);
707         REGISTER_CLASS_ENUM (PresentationInfo, VCA);
708         REGISTER_CLASS_ENUM (PresentationInfo, MasterOut);
709         REGISTER_CLASS_ENUM (PresentationInfo, MonitorOut);
710         REGISTER_CLASS_ENUM (PresentationInfo, Auditioner);
711         REGISTER_CLASS_ENUM (PresentationInfo, Hidden);
712         REGISTER_CLASS_ENUM (PresentationInfo, OrderSet);
713         REGISTER_BITS (_PresentationInfo_Flag);
714
715         REGISTER_CLASS_ENUM (MusicalMode,Dorian);
716         REGISTER_CLASS_ENUM (MusicalMode, IonianMajor);
717         REGISTER_CLASS_ENUM (MusicalMode, AeolianMinor);
718         REGISTER_CLASS_ENUM (MusicalMode, HarmonicMinor);
719         REGISTER_CLASS_ENUM (MusicalMode, MelodicMinorAscending);
720         REGISTER_CLASS_ENUM (MusicalMode, MelodicMinorDescending);
721         REGISTER_CLASS_ENUM (MusicalMode, Phrygian);
722         REGISTER_CLASS_ENUM (MusicalMode, Lydian);
723         REGISTER_CLASS_ENUM (MusicalMode, Mixolydian);
724         REGISTER_CLASS_ENUM (MusicalMode, Locrian);
725         REGISTER_CLASS_ENUM (MusicalMode, PentatonicMajor);
726         REGISTER_CLASS_ENUM (MusicalMode, PentatonicMinor);
727         REGISTER_CLASS_ENUM (MusicalMode, Chromatic);
728         REGISTER_CLASS_ENUM (MusicalMode, BluesScale);
729         REGISTER_CLASS_ENUM (MusicalMode, NeapolitanMinor);
730         REGISTER_CLASS_ENUM (MusicalMode, NeapolitanMajor);
731         REGISTER_CLASS_ENUM (MusicalMode, Oriental);
732         REGISTER_CLASS_ENUM (MusicalMode, DoubleHarmonic);
733         REGISTER_CLASS_ENUM (MusicalMode, Enigmatic);
734         REGISTER_CLASS_ENUM (MusicalMode, Hirajoshi);
735         REGISTER_CLASS_ENUM (MusicalMode, HungarianMinor);
736         REGISTER_CLASS_ENUM (MusicalMode, HungarianMajor);
737         REGISTER_CLASS_ENUM (MusicalMode, Kumoi);
738         REGISTER_CLASS_ENUM (MusicalMode, Iwato);
739         REGISTER_CLASS_ENUM (MusicalMode, Hindu);
740         REGISTER_CLASS_ENUM (MusicalMode, Spanish8Tone);
741         REGISTER_CLASS_ENUM (MusicalMode, Pelog);
742         REGISTER_CLASS_ENUM (MusicalMode, HungarianGypsy);
743         REGISTER_CLASS_ENUM (MusicalMode, Overtone);
744         REGISTER_CLASS_ENUM (MusicalMode, LeadingWholeTone);
745         REGISTER_CLASS_ENUM (MusicalMode, Arabian);
746         REGISTER_CLASS_ENUM (MusicalMode, Balinese);
747         REGISTER_CLASS_ENUM (MusicalMode, Gypsy);
748         REGISTER_CLASS_ENUM (MusicalMode, Mohammedan);
749         REGISTER_CLASS_ENUM (MusicalMode, Javanese);
750         REGISTER_CLASS_ENUM (MusicalMode, Persian);
751         REGISTER_CLASS_ENUM (MusicalMode, Algerian);
752         REGISTER (mode);
753 }
754
755 } /* namespace ARDOUR */