
markup.push({

	// MARK: Magic Boost

	MagicBoostBlock: {
		"+" : "BlockTemplate",
		gxTitle: "Magic Boost",
		geNodeClass: "AHCompressorNode",
		gxPopoverInfo: "MagicBoostPopover",
		gxLibraryDescription: "Boost quiet audio without increasing louder audio",
		gxLibraryIcon: "library.magic.boost",
		gxChildViews:
		{
			icon: {
				nsClass: "GXDrawView",
				gxForePainter: "ImagePainter.block.magic.boost",
				gxFrameRect: "30,27,60,60"
			},
			toggle:
			{
				//"+": "SwitchView",
				"+": "SwitchView.blockFace",
				gxValueKey: "node.magicOn",
				gxVertical: false,
				gxFrameRect: "34,82,52,23",
				axTitle: "Magic Boost",
			}
		}
	},
	

	// MARK: popover

	MagicBoostPopover:
	{
		"+": "PopoverTemplate",
		gxTitle: "Magic Boost",
		gxCanDrawSubviewsIntoLayer: true,
		gxLayout: [
			"H:|-12-[self(300)]-12-|",	// sets popover width

			"V:|-12-[self]-12-|",
			"V:|-41-[group]-16-|"
		],
		gxChildViews:
		{
			title: "PopoverTitle",
			switch: "PopoverOnOffSwitch",
			group:
			{
				"+": "GroupView.noBottomStroke",
				gxLayout: [
					"H:|-0-[self]-0-|",

					"H:|-14-[label]-8-[switch(58)]&alignBaseline",

					"V:|-15-[switch(27)]-10-[text(46)]-0-|",
					"V:[switch]-12-[infoIcon]",
										
					"H:|-14-[infoIcon(16)]-8-[text]-11-|",
				],
				gxChildViews: {
					label: labelView("Magic Boost:"),
					switch: {
						"+": "SwitchView.large.showLive",
						gxValueKey: "node.magicOn",
						gxVertical: false,
						gxBaselineOffset: 8,
						axTitle: "Magic Boost",
					},
					infoIcon: { "+": "InfoIcon" },
					text: {
						"+": "DescriptionLabelView",
						gxDefaultValue: "Give a volume boost to quiet passages, while leaving louder audio untouched. Get richer, fuller sound, particularly from small speakers.",
					},
				}
			}
		}
	},

})
