
markup.push({

    AudioUnitBack:
    {
        "+": "GroupViewBack",
        generic: {
            gxFillColor: "BackColor1",
         }
    },

    
	// ----------------------------------------------------------------------
	// MARK: Apple AU View templates

    AppleAUView: {
        nsClass: "NKAudioUnitView",
        gxBackPainter: "AudioUnitBack",
		gxDragger : "SliderSelectionDragger",
		gxVScrollbar: "ScrollBarView",
		gxHScrollbar: "ScrollBarView",
    },

	AppleAUViewTrimTop: {
		"+": "AppleAUView",
		borderInsets: "0,28,0,0"
	},
	
	AppleAUViewTrimAll: {
		"+": "AppleAUView",
		borderInsets: "4,28,4,10"
	},
	
	// ----------------------------------------------------------------------
	// MARK: Apple AU Views

	AUAudioFilePlayerView: {
        "+": "AppleAUView",
	},

	AUBandpassView: {
		"+": "AppleAUViewTrimAll",
	},
	
	AUDynamicsProcessorView: {
		"+": "AppleAUViewTrimTop",
	},

	AUDelayView: {
		"+": "AppleAUView",
	},

	AUDistortionView: {
		"+": "AppleAUViewTrimAll",
	},

	AUFilterView: {
		"+": "AppleAUViewTrimAll",
	},

	AUGraphicEQView: {
		"+": "AppleAUViewTrimAll",
	},

	AUHipassView: {
		"+": "AppleAUViewTrimAll",
	},

	AUHighShelfFilterView: {
		"+": "AppleAUViewTrimAll",
	},

	AUPeakLimiterView: {
		"+": "AppleAUView",
	},

	AULowpassView: {
		"+": "AppleAUViewTrimAll",
	},

	AULowShelfFilterView: {
		"+": "AppleAUViewTrimAll",
	},

	AUMultibandCompressorView: {
		"+": "AppleAUViewTrimTop",
	},

	AUMatrixReverbView: {
		"+": "AppleAUView",
	},

	AUNBandEQView: {
		"+": "AppleAUView",
	},
	
	AUNetReceiveView: {
		"+": "AppleAUView",
	},

	AUNetSendView: {
		"+": "AppleAUView",
	},

	AUParametricEQView: {
		"+": "AppleAUViewTrimAll",
	},

	AUPitchView: {
		"+": "AppleAUView",
	},

	AUNewPitchView: {
		"+": "AppleAUView",
	},

	AUReverb2View: {
	   "+": "AppleAUView",
   },

	AUSamplerView: {
		"+": "AppleAUView",
	},

	AUSoundIsolationView: {
		"+": "AppleAUView",
	},

	AUDLSMusicDeviceView: {
		"+": "AppleAUView",
	},


	// ----------------------------------------------------------------------
	// MARK: Apple AU Popover templates

	GenericAUPopover:
    {
		"+": "PopoverTemplate",
		//geDisplayName: "Audio Unit Plugin",
		gxLayout: [  
					"H:|-12-[self]-12-|",
				   	"V:|-12-[self]-12-|",
					"H:|-12-[auView(<=100@500)]-12-|", // Shrink to fit the view
				   	"V:|-37-[auView(<=100@500)]-8-[presetsGroup]-8-|"  // Shrink to fit the view
				   ],
		gxChildViews: {
			title: "PopoverTitle",
			onOff: "PopoverOnOffSwitch",
			presetsGroup: presetsGroup(),
			auView: {
				"+": "AppleAUView"
			},
		}
	},

	AppleAUPopover: {
		"+": "GenericAUPopover",
	},

	AppleAUPopoverTrimTop: {
		"+": "AppleAUPopover",
		gxChildViews: {
			title: "PopoverTitle",
			onOff: "PopoverOnOffSwitch",
			presetsGroup: presetsGroup(),
			// trimmed audio unit view
            auView: "AppleAUViewTrimTop",
		}
	},

	AppleAUPopoverTrimAll: {
		"+": "AppleAUPopover",
		gxChildViews: {
			title: "PopoverTitle",
			onOff: "PopoverOnOffSwitch",
			presetsGroup: presetsGroup(),
			// trimmed audio unit view
            auView: "AppleAUViewTrimAll",
		}
	},


	// ----------------------------------------------------------------------
	// MARK: Apple AU Popovers

	AUAudioFilePlayerPopover: {
        "+": "AppleAUPopover",
        gxDescription: "Play and loop audio files",
        gxTitle: "Audio File Player",
	},

	AUBandpassPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Pass only frequencies in a specified range",
		gxTitle: "Bandpass Filter",
	},
	
	AUDynamicsProcessorPopover: {
		"+": "AppleAUPopoverTrimTop",
		gxDescription: "Reduce or expand audio's dynamic range",
		gxTitle: "Dynamics Processor",
	},

	AUDelayPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Delay audio & replay to create an echo",
		gxTitle: "Apple Delay",
	},

	AUDistortionPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Distort audio with multiple settings",
		gxTitle: "Distortion",
	},

	AUFilterPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Filter audio with multiple pass & shelf options",
		gxTitle: "Filter",
	},

	AUGraphicEQPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Fine-tune specific frequencies with 10 or 31 bands",
		gxTitle: "Graphic Equalizer",
	},

	AUHipassPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Pass high audio frequencies",
		gxTitle: "Highpass Filter",
	},

	AUHighShelfFilterPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Cut off high audio frequencies",
		gxTitle: "High Shelf Filter",
	},

	AUPeakLimiterPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Limit audio volume dynamically",
		gxTitle: "Peak Limiter",
	},

	AULowpassPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Pass low audio frequencies",
		gxTitle: "Lowpass Filter",
	},

	AULowShelfFilterPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Cut off low audio frequencies",
		gxTitle: "Low Shelf Filter",
	},

	AUMultibandCompressorPopover: {
		"+": "AppleAUPopoverTrimTop",
		gxDescription: "Reduce or expand audio across multiple frequency ranges",
		gxTitle: "Multiband Compressor",
	},

	AUMatrixReverbPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Create a range of reverb effects",
		gxTitle: "Matrix Reverb",
	},

	AUNBandEQPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Fine-tune up to 16 frequency ranges",
		gxTitle: "N-Band Equalizer",
	},
	
	AUNetReceivePopover: {
		"+": "AppleAUPopover",
		gxDescription: "Receive audio from AUNetSend",
		gxTitle: "Network Receive",
	},

	AUNetSendPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Send audio to AUNetReceive",
		gxTitle: "Network Send",
	},

	AUParametricEQPopover: {
		"+": "AppleAUPopoverTrimAll",
		gxDescription: "Adjust a given frequency range's amplitude",
		gxTitle: "Parametric Equalizer",
	},

	AUPitchPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Shift the audio's pitch",
		gxTitle: "Pitch",
	},

	AUNewPitchPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Shift the audio's pitch",
		gxTitle: "New Pitch",
	},

	AUReverb2Popover: {
	   "+": "AppleAUPopover",
	   gxDescription: "Add reverb to audio",
	   gxTitle: "Reverb2",
   },

	AUSamplerPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Add samples with a playable instrument",
		gxTitle: "Sampler",
	},

	AUSoundIsolationPopover: {
		"+": "AppleAUPopover",
		gxDescription: "Isolate voice from background audio",
		gxTitle: "Sound Isolation",
	},

	AUDLSMusicDevicePopover: {
		"+": "AppleAUPopover",
		gxDescription: "Add samples to your audio",
		gxTitle: "Music Device",
	},

	// --------------------------------------------------
	// MARK: generic AU view controls

	GenericAUSliderItem: {
		nsClass: "GXDrawView",
		gxLayout: [ "H:|-(>=10)-[label]-[slider(250)]-[readout(130)]-(10)-|&alignCenterY",
				   	"V:|-4-[slider]-3-|" ],
		gxChildViews: {
			slider: {
				"+": "SliderView"
			},
			label: {
				"+": "LabelView.right.centery",
				axIsIgnored: false,
			},
			readout: {
				"+": "ReadoutView.centery",
				axIsIgnored: false,
			}
		}
	},

	GenericAUSwitchItem: {
		nsClass: "GXDrawView",
		gxLayout: [ "H:|-(>=10)-[label]-[switch(100)]-(>=298)-|&alignBaseline",
				   	"V:|-4-[switch]-3-|" ],
		gxChildViews: {
			switch: {
				"+": "SwitchView",
				gxForePainter: "SwitchPainter",
			},
			label: {
				"+": "LabelView.right.dark.size13",
				axIsIgnored: false,
			}
		}
	},

	GenericAUPopupMenuItem: {
		nsClass: "GXDrawView",
		gxLayout: [ "H:|-(>=10)-[label]-[popupMenu(250)]-(>=148)-|&alignBaseline",
				   	"V:|-4-[popupMenu]-3-|" ],
		gxChildViews: {
			popupMenu: {
				"+": "PopupMenuTemplate",
				gxHideOnNilValue:false
			},
			label: {
				"+": "LabelView.right.dark.size13",
				axIsIgnored: false,
			}
		}
	},


});
