<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE EDL PUBLIC "-//OPENEMULATOR//DTD EDL 1.0//EN" "http://www.openemulator.org/DTD/edl-1.0.dtd">
<edl version="1.0" creator="OpenEmulator" framework="787" label="Apple II" image="images/Apple/Apple II.png" description="The Apple II is an 8-bit home computer, one of the first highly successful mass-produced microcomputers. It has a MOS 6502 microprocessor running at 1 MHz, up to 48 kiB of RAM, an audio cassette interface for loading and storing programs and data, and Integer BASIC built into ROM.">
    
    <device id="appleII" label="Apple II" image="images/Apple/Apple II.png">
        <setting ref="appleII.video" name="revision" label="Revision" type="select" options="0|Revision 0,1|Revision 1+"/>
        <setting ref="appleII.audioOut" name="volume" label="Volume" type="slider" options="0,1"/>
        <setting ref="appleII.video" name="characterSet" label="Character Set" type="select" options="Standard,Videx|Videx Lowercase Chip,Pigfont"/>
        <setting ref="appleII.keyboard" name="type" label="Keyboard" type="select" options="Standard,Shift-Key Mod,Full ASCII"/>
        <setting ref="appleII.audioOut" name="cassetteOut" label="Cassette Output" type="checkbox"/>
    </device>
    <port id="appleII.videoPort" ref="appleMonitorII.connector" type="Composite Video Port" group="peripherals" label="Video Port" image="images/Connectors/RCA Female.png">
        <inlet ref="appleII.keyboard" property="monitor" outletRef="monitor"/>
        <inlet ref="appleII.video" property="monitor" outletRef="monitor"/>
    </port>
    <port id="appleII.gamePort" ref="appleHandControllers.connector" type="Apple II Game Port" group="peripherals" label="Game Port" image="images/Connectors/DIP16.png">
        <inlet ref="appleII.gamePort" property="gamePort" outletRef="io"/>
    </port>
    <port id="appleII.slot0" ref="" type="Apple II Slot" group="expansions" label="Slot 0" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot0" outletRef="io"/>
    </port>
    <port id="appleII.slot1" ref="" type="Apple II Slot" group="expansions" label="Slot 1" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot1" outletRef="io"/>
        <inlet ref="appleII.memoryBus" property="refSlot1" outletRef="memory"/>
    </port>
    <port id="appleII.slot2" ref="" type="Apple II Slot" group="expansions" label="Slot 2" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot2" outletRef="io"/>
        <inlet ref="appleII.memoryBus" property="refSlot2" outletRef="memory"/>
    </port>
    <port id="appleII.slot3" ref="" type="Apple II Slot" group="expansions" label="Slot 3" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot3" outletRef="io"/>
        <inlet ref="appleII.memoryBus" property="refSlot3" outletRef="memory"/>
    </port>
    <port id="appleII.slot4" ref="" type="Apple II Slot" group="expansions" label="Slot 4" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot4" outletRef="io"/>
        <inlet ref="appleII.memoryBus" property="refSlot4" outletRef="memory"/>
    </port>
    <port id="appleII.slot5" ref="" type="Apple II Slot" group="expansions" label="Slot 5" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot5" outletRef="io"/>
        <inlet ref="appleII.memoryBus" property="refSlot5" outletRef="memory"/>
    </port>
    <port id="appleII.slot6" ref="appleDiskIICard.connector" type="Apple II Slot" group="expansions" label="Slot 6" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot6" outletRef="io"/>
        <inlet ref="appleII.memoryBus" property="refSlot6" outletRef="memory"/>
    </port>
    <port id="appleII.slot7" ref="" type="Apple II Slot" group="expansions" label="Slot 7" image="images/Connectors/Edge50.png">
        <inlet ref="appleII.io" property="refSlot7" outletRef="io"/>
        <inlet ref="appleII.memoryBus" property="refSlot7" outletRef="memory"/>
    </port>
    <port id="appleII.cpuSocket" ref="" type="Apple II CPU Socket" group="expansions" label="CPU Socket" image="images/Connectors/DIP40.png">
    </port>
    <component id="appleII.controlBus" class="ControlBus">
        <property name="emulation" ref="emulation"/>
        <property name="device" ref="appleII"/>
        <property name="audio" ref="audio"/>
        <!-- Clock frequency: (14318181.8 crystal cycles/s) * (65 CPU cycles/scanline) / (912 crystal cycles/scanline) -->
        <property name="clockFrequency" value="1020484.4497"/>
        <property name="cpuClockMultiplier" value="1"/>
        <property name="cpu" ref="appleII.cpu"/>
        <property name="powerState" value="S0"/>
        <property name="resetOnPowerOn" value="1"/>
        <property name="resetCount" value="0"/>
        <property name="irqCount" value="0"/>
        <property name="nmiCount" value="0"/>
    </component>
    <component id="appleII.cpu" class="MOS6502">
        <property name="a" value="0x0"/>
        <property name="x" value="0x0"/>
        <property name="y" value="0x0"/>
        <property name="s" value="0x0"/>
        <property name="p" value="0x0"/>
        <property name="pc" value="0xff59"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="memoryBus" ref="appleII.memoryBus"/>
    </component>
    <component id="appleII.floatingBus" class="AppleIIFloatingBus">
        <property name="video" ref="appleII.video"/>
    </component>
    <component id="appleII.memoryBus" class="AppleIIAddressDecoder">
        <property name="size" value="0x10000"/>
        <property name="blockSize" value="0x100"/>
        <property name="floatingBus" ref="appleII.floatingBus"/>
        <property name="refRAM1" ref="appleII.ram1"/>
        <property name="mapRAM1" value="0x0000-0x3fff"/>
        <property name="refRAM2" ref="appleII.ram2"/>
        <property name="mapRAM2" value="0x4000-0x7fff"/>
        <property name="refRAM3" ref="appleII.ram3"/>
        <property name="mapRAM3" value="0x8000-0xbfff"/>
        <property name="refIO" ref="appleII.io"/>
        <property name="mapIO" value="0xc000-0xc0ff"/>
        <property name="refSlot1" ref=""/>
        <property name="mapSlot1" value="0xc100-0xc1ff"/>
        <property name="refSlot2" ref=""/>
        <property name="mapSlot2" value="0xc200-0xc2ff"/>
        <property name="refSlot3" ref=""/>
        <property name="mapSlot3" value="0xc300-0xc3ff"/>
        <property name="refSlot4" ref=""/>
        <property name="mapSlot4" value="0xc400-0xc4ff"/>
        <property name="refSlot5" ref=""/>
        <property name="mapSlot5" value="0xc500-0xc5ff"/>
        <property name="refSlot6" ref="appleDiskIICard.memory"/>
        <property name="mapSlot6" value="0xc600-0xc6ff"/>
        <property name="refSlot7" ref=""/>
        <property name="mapSlot7" value="0xc700-0xc7ff"/>
        <property name="refROMD0" ref="appleII.romD0"/>
        <property name="mapROMD0" value="0xd000-0xd7ff"/>
        <property name="refROME0" ref="appleII.romE0"/>
        <property name="mapROME0" value="0xe000-0xe7ff"/>
        <property name="refROME8" ref="appleII.romE8"/>
        <property name="mapROME8" value="0xe800-0xefff"/>
        <property name="refROMF0" ref="appleII.romF0"/>
        <property name="mapROMF0" value="0xf000-0xf7ff"/>
        <property name="refROMF8" ref="appleII.romF8"/>
        <property name="mapROMF8" value="0xf800-0xffff"/>
    </component>
    <component id="appleII.ram1" class="VRAM">
        <property name="size" value="0x4000"/>
        <property name="memoryImage" data="${packagePath}/${id}.bin"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="powerOnPattern" value="0xffff0000"/>
        <property name="videoBlockSize" value="0x400"/>
        <property name="videoMap" value="0x400-0xbff,0x2000-0x3fff"/>
        <property name="videoObserver" ref="appleII.video"/>
    </component>
    <component id="appleII.ram2" class="VRAM">
        <property name="size" value="0x4000"/>
        <property name="memoryImage" data="${packagePath}/${id}.bin"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="powerOnPattern" value="0xffff0000"/>
        <property name="videoBlockSize" value="0x400"/>
        <property name="videoMap" value="0x0000-0x1fff"/>
        <property name="videoObserver" ref="appleII.video"/>
    </component>
    <component id="appleII.ram3" class="RAM">
        <property name="size" value="0x4000"/>
        <property name="memoryImage" data="${packagePath}/${id}.bin"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="powerOnPattern" value="0xffff0000"/>
    </component>
    <component id="appleII.io" class="AddressDecoder">
        <property name="size" value="0x100"/>
        <property name="blockSize" value="0x1"/>
        <property name="floatingBus" ref="appleII.floatingBus"/>
        <property name="refKeyboard" ref="appleII.keyboard"/>
        <property name="mapKeyboard" value="0x00-0x1f"/>
        <property name="refSpeaker" ref="appleII.audioOut"/>
        <property name="mapSpeaker" value="0x20-0x3f"/>
        <property name="refGamePort" ref="appleII.gamePort"/>
        <property name="mapGamePort" value="0x40-0x4f,0x58-0x5f,0x61-0x67,0x69-0x6f,0x70-0x7f"/>
        <property name="refVideo" ref="appleII.video"/>
        <property name="mapVideo" value="0x50-0x57"/>
        <property name="refAudioIn" ref="appleII.audioIn"/>
        <property name="mapAudioIn" value="0x60,0x68"/>
        <property name="refSlot0" ref=""/>
        <property name="mapSlot0" value="0x80-0x8f"/>
        <property name="refSlot1" ref=""/>
        <property name="mapSlot1" value="0x90-0x9f"/>
        <property name="refSlot2" ref=""/>
        <property name="mapSlot2" value="0xa0-0xaf"/>
        <property name="refSlot3" ref=""/>
        <property name="mapSlot3" value="0xb0-0xbf"/>
        <property name="refSlot4" ref=""/>
        <property name="mapSlot4" value="0xc0-0xcf"/>
        <property name="refSlot5" ref=""/>
        <property name="mapSlot5" value="0xd0-0xdf"/>
        <property name="refSlot6" ref="appleDiskIICard.io"/>
        <property name="mapSlot6" value="0xe0-0xef"/>
        <property name="refSlot7" ref=""/>
        <property name="mapSlot7" value="0xf0-0xff"/>
    </component>
    <component id="appleII.keyboard" class="AppleIIKeyboard">
        <property name="type" value="Shift-Key Mod"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="floatingBus" ref="appleII.floatingBus"/>
        <property name="gamePort" ref="appleII.gamePort"/>
        <property name="monitor" ref="appleMonitorII.monitor"/>
    </component>
    <component id="appleII.audioIn" class="AppleIIAudioIn">
        <property name="noiseRejection" value="0.03999999911"/>
        <property name="audioCodec" ref="appleII.audioCodec"/>
        <property name="floatingBus" ref="appleII.floatingBus"/>
    </component>
    <component id="appleII.audioOut" class="AppleIIAudioOut">
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="floatingBus" ref="appleII.floatingBus"/>
        <property name="audioCodec" ref="appleII.audioCodec"/>
        <property name="volume" value="1"/>
        <property name="cassetteOut" value="0"/>
    </component>
    <component id="appleII.audioCodec" class="AudioCodec">
        <property name="audio" ref="audio"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="timeAccuracy" value="0.000001"/>
        <property name="filterSize" value="17"/>
        <property name="lowFrequency" value="20"/>
        <property name="highFrequency" value="10000"/>
    </component>
    <component id="appleII.gamePort" class="AppleIIGamePort">
        <property name="an0" value="0"/>
        <property name="an1" value="0"/>
        <property name="an2" value="0"/>
        <property name="an3" value="0"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="floatingBus" ref="appleII.floatingBus"/>
        <property name="gamePort" ref="appleHandControllers.io"/>
    </component>
    <component id="appleII.video" class="AppleIIVideo">
        <property name="model" value="II"/>
        <property name="revision" value="0"/>
        <property name="tvSystem" value="NTSC"/>
        <property name="characterSet" value="Standard"/>
        <property name="flashFrameNum" value="14"/>
        <property name="text" value="0"/>
        <property name="mixed" value="0"/>
        <property name="page2" value="0"/>
        <property name="hires" value="0"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="monitor" ref="appleMonitorII.monitor"/>
        <property name="vram0000" ref="appleII.ram1"/>
        <property name="vram0000Offset" value="0x0000"/>
        <property name="vram1000" ref="appleII.ram1"/>
        <property name="vram1000Offset" value="0x1000"/>
        <property name="vram2000" ref="appleII.ram1"/>
        <property name="vram2000Offset" value="0x2000"/>
        <property name="vram4000" ref="appleII.ram2"/>
        <property name="vram4000Offset" value="0x0000"/>
        <property name="fontStandard" data="${resourcePath}/roms/Apple/341-0036.bin"/>
        <property name="fontVidex" data="${resourcePath}/roms/Videx/Videx Lower Case Chip ROM.bin"/>
        <property name="fontPigfont" data="${resourcePath}/roms/Apple/Pigfont Video ROM.bin"/>
    </component>
    <component id="appleII.romD0" class="ROM">
        <property name="memoryImage" data="${resourcePath}/roms/Apple/341-0016-00.bin"/>
    </component>
    <component id="appleII.romE0" class="ROM">
        <property name="memoryImage" data="${resourcePath}/roms/Apple/341-0001-00.bin"/>
    </component>
    <component id="appleII.romE8" class="ROM">
        <property name="memoryImage" data="${resourcePath}/roms/Apple/341-0002-00.bin"/>
    </component>
    <component id="appleII.romF0" class="ROM">
        <property name="memoryImage" data="${resourcePath}/roms/Apple/341-0003-00.bin"/>
    </component>
    <component id="appleII.romF8" class="ROM">
        <property name="memoryImage" data="${resourcePath}/roms/Apple/341-0004-00.bin"/>
    </component>
    
    <device id="appleMonitorII" label="Apple Monitor II" image="images/Apple/Apple Monitor II.png">
        <setting ref="appleMonitorII.monitor" name="videoBrightness" label="Brightness" type="slider" options="-1.0,1.0"/>
        <setting ref="appleMonitorII.monitor" name="videoContrast" label="Contrast" type="slider" options="0.0,1.0"/>
        <setting ref="appleMonitorII.monitor" name="videoVerticalCenter" label="Vertical Center" type="slider" options="-0.1,0.1"/>
        <setting ref="appleMonitorII.monitor" name="videoVerticalSize" label="Vertical Size" type="slider" options="0.85,1.25"/>
    </device>
    <connector id="appleMonitorII.connector" type="Composite Video Port">
        <inlet ref="appleMonitorII.monitor" property="controlBus" outletRef="controlBus"/>
    </connector>
    <component id="appleMonitorII.monitor" class="Monitor">
        <property name="device" ref="appleMonitorII"/>
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="videoDecoder" value="Monochrome"/>
        <property name="videoBrightness" value="0.150000006"/>
        <property name="videoContrast" value="0.8000000119"/>
        <property name="videoSaturation" value="1.450000048"/>
        <property name="videoHue" value="0.2700000107"/>
        <property name="videoHorizontalCenter" value="0"/>
        <property name="videoHorizontalSize" value="1.049999952"/>
        <property name="videoVerticalCenter" value="0"/>
        <property name="videoVerticalSize" value="1.049999952"/>
        <property name="videoBandwidth" value="6000000"/>
        <property name="displayBarrel" value="0.1000000015"/>
        <property name="displayScanlineLevel" value="0.5"/>
        <property name="displayCenterLighting" value="0.5"/>
        <property name="displayLuminanceGain" value="1.5"/>
    </component>
    
    <device id="appleHandControllers" label="Apple Hand Controllers" image="images/Apple/Apple Hand Controllers.png">
        <setting ref="appleHandControllers.io" name="inputDevice" label="Input Device" type="select" options="Mouse,Joystick,None"/>
        <setting ref="appleHandControllers.io" name="axis0" label="PDL0" type="select" options=""/>
        <setting ref="appleHandControllers.io" name="axis1" label="PDL1" type="select" options=""/>
        <setting ref="appleHandControllers.io" name="axis2" label="PDL2" type="select" options=""/>
        <setting ref="appleHandControllers.io" name="axis3" label="PDL3" type="select" options=""/>
        <setting ref="appleHandControllers.io" name="button0" label="PB0" type="select" options=""/>
        <setting ref="appleHandControllers.io" name="button1" label="PB1" type="select" options=""/>
        <setting ref="appleHandControllers.io" name="button2" label="PB2" type="select" options=""/>
        <setting ref="appleHandControllers.io" name="sensitivityAxis0" label="PDL0 Sensitivity" type="slider" options="-10,10"/>
        <setting ref="appleHandControllers.io" name="sensitivityAxis1" label="PDL1 Sensitivity" type="slider" options="-10,10"/>
        <setting ref="appleHandControllers.io" name="sensitivityAxis2" label="PDL2 Sensitivity" type="slider" options="-10,10"/>
        <setting ref="appleHandControllers.io" name="sensitivityAxis3" label="PDL3 Sensitivity" type="slider" options="-10,10"/>
        <setting ref="appleHandControllers.io" name="reverseAxis0" label="PDL0 Reverse" type="checkbox"/>
        <setting ref="appleHandControllers.io" name="reverseAxis1" label="PDL1 Reverse" type="checkbox"/>
        <setting ref="appleHandControllers.io" name="reverseAxis2" label="PDL2 Reverse" type="checkbox"/>
        <setting ref="appleHandControllers.io" name="reverseAxis3" label="PDL3 Reverse" type="checkbox"/>
    </device>
    <connector id="appleHandControllers.connector" type="Apple II Game Port">
        <inlet ref="appleHandControllers.io" property="canvas" outletRef="video"/>
    </connector>
    <component id="appleHandControllers.io" class="JoystickMapper">
        <property name="inputDevice" value="Mouse"/>
        <property name="deviceId" value="0"/>
        <property name="axis0" value="Mouse X"/>
        <property name="axis1" value="Mouse Y"/>
        <property name="axis2" value="Unmapped"/>
        <property name="axis3" value="Unmapped"/>
        <property name="button0" value="Mouse Button 1"/>
        <property name="button1" value="Mouse Button 2"/>
        <property name="button2" value="Mouse Button 3"/>
        <property name="sensitivityAxis0" value="0"/>
        <property name="sensitivityAxis1" value="0"/>
        <property name="sensitivityAxis2" value="0"/>
        <property name="sensitivityAxis3" value="0"/>
        <property name="reverseAxis0" value="0"/>
        <property name="reverseAxis1" value="0"/>
        <property name="reverseAxis2" value="0"/>
        <property name="reverseAxis3" value="0"/>
        <property name="mapMouse" value="axis0,Mouse X,0,0,axis1,Mouse Y,0,0,axis2,Unmapped,0,0,axis3,Unmapped,0,0,button0,Mouse Button 1,0,0,button1,Mouse Button 2,0,0,button2,Mouse Button 3,0,0"/>
        <property name="mapJoystick" value="axis0,Joystick 1 X-Axis,0,0,axis1,Joystick 1 Y-Axis,0,0,axis2,Joystick 1 Z-Rotation,0,0,axis3,Joystick 1 Slider,0,0,button0,Joystick 1 Button 1,0,0,button1,Joystick 1 Button 2,0,0,button2,Joystick 1 Button 3,0,0"/>
        <property name="mapNone" value="axis0,Unmapped,0,0,axis1,Unmapped,0,0,axis2,Unmapped,0,0,axis3,Unmapped,0,0,button0,Unmapped,0,0,button1,Unmapped,0,0,button2,Unmapped,0,0"/>
        <property name="device" ref="appleHandControllers"/>
        <property name="canvas" ref="appleII.video"/>
        <property name="joystick" ref="joystick"/>
    </component>
    
    <device id="appleDiskIICard" label="Apple Disk II Interface Card" image="images/Apple/Apple Disk II Interface Card.png">
        <setting ref="appleDiskIICard.memory" name="sel" label="Controller ROM" type="select" options="ROM13|13 Sector Controller,ROM16|16 Sector Controller"/>
    </device>
    <connector id="appleDiskIICard.connector" type="Apple II Slot">
        <inlet ref="appleDiskIICard.io" property="controlBus" outletRef="controlBus"/>
        <inlet ref="appleDiskIICard.io" property="floatingBus" outletRef="floatingBus"/>
        <inlet ref="appleDiskIICard.controlBus" property="component" outletRef="controlBus"/>
    </connector>
    <port id="appleDiskIICard.drive1" ref="appleDiskII.connector" type="Apple Disk Drive Port" group="peripherals" label="Drive 1" image="images/Connectors/Header2x10.png">
        <inlet ref="appleDiskIICard.io" property="drive1" outletRef="drive"/>
    </port>
    <port id="appleDiskIICard.drive2" ref="appleDiskII2.connector" type="Apple Disk Drive Port" group="peripherals" label="Drive 2" image="images/Connectors/Header2x10.png">
        <inlet ref="appleDiskIICard.io" property="drive2" outletRef="drive"/>
    </port>
    <component id="appleDiskIICard.io" class="AppleDiskIIInterfaceCard">
        <property name="controlBus" ref="appleII.controlBus"/>
        <property name="floatingBus" ref="appleII.floatingBus"/>
        <property name="phaseControl" value="0"/>
        <property name="driveOn" value="0"/>
        <property name="driveSel" value="0"/>
        <property name="drive1" ref="appleDiskII.drive"/>
        <property name="drive2" ref="appleDiskII2.drive"/>
    </component>
    <component id="appleDiskIICard.memory" class="AddressMux">
        <property name="refROM13" ref="appleDiskIICard.rom13"/>
        <property name="refROM16" ref="appleDiskIICard.rom16"/>
        <property name="sel" value="ROM16"/>
    </component>
    <component id="appleDiskIICard.rom13" class="ROM">
        <property name="memoryImage" data="${resourcePath}/roms/Apple/341-0009.bin"/>
    </component>
    <component id="appleDiskIICard.rom16" class="ROM">
        <property name="memoryImage" data="${resourcePath}/roms/Apple/341-0027.bin"/>
    </component>
    <component id="appleDiskIICard.controlBus" class="Proxy">
        <property name="component" ref="appleII.controlBus"/>
    </component>
    
    <device id="appleDiskII" label="Apple Disk II" image="images/Apple/Apple Disk II.png">
        <setting ref="appleDiskII.drive" name="forceWriteProtected" label="Force Write Protected" type="checkbox"/>
        <setting ref="appleDiskII.drive" name="mechanism" label="Mechanism" type="select" options="Shugart,Alps"/>
        <setting ref="appleDiskII.drive" name="volume" label="Volume" type="slider" options="0,1"/>
        <setting ref="appleDiskII.drive" name="optimalBitTime" label="Optimal Bit Timing" type="select" options="3.000μs,3.125μs,3.250μs,3.375μs,3.500μs,3.625μs,3.750μs,3.875μs,4.000μs,4.125μs,4.250μs,4.375μs,4.500μs,4.625μs,4.750μs,4.875μs,5.000μs"/>
        <setting ref="appleDiskII.drive" name="random1Percentage" label="Weak Bits 1's %" type="select" options="0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100"/>
        <setting ref="appleDiskII.drive" name="jitterPercentage" label="Jitter Rate %" type="select" options="0,1,2,3,4,5"/>
        <setting ref="appleDiskII.drive" name="headWindowWidth" label="Head Window Width" type="select" options="3 bits,4 bits,5 bits"/>
        <setting ref="appleDiskII.drive" name="headWindowDelay" label="Head Window Delay" type="checkbox"/>
    </device>
    <connector id="appleDiskII.connector" type="Apple Disk Drive Port">
        <inlet ref="appleDiskII.drive" property="controlBus" outletRef="controlBus"/>
        <inlet ref="appleDiskII.headPlayer" property="controlBus" outletRef="controlBus"/>
    </connector>
    <component id="appleDiskII.drive" class="AppleDiskDrive525">
        <property name="device" ref="appleDiskII"/>
        <property name="controlBus" ref="appleDiskIICard.controlBus"/>
        <property name="diskImage" value=""/>
        <property name="track" value="0"/>
        <property name="forceWriteProtected" value="0"/>
        <property name="doorPlayer" ref="appleDiskII.doorPlayer"/>
        <property name="drivePlayer" ref="appleDiskII.drivePlayer"/>
        <property name="headPlayer" ref="appleDiskII.headPlayer"/>
        <property name="imageDriveOff" value="images/Apple/Apple Disk II.png"/>
        <property name="imageDriveInUse" value="images/Apple/Apple Disk II In Use.png"/>
        <property name="mechanism" value="Shugart"/>
        <property name="volume" value="0.5"/>
        <property name="optimalBitTime" value="4.000μs"/>
        <property name="random1Percentage" value="30"/>
        <property name="jitterPercentage" value="0"/>
        <property name="headWindowWidth" value="4 bits"/>
        <property name="headWindowDelay" value="1"/>
        <property name="soundShugartOpen" value="${resourcePath}/sounds/Shugart/Shugart SA400 Open.ogg"/>
        <property name="soundShugartClose" value="${resourcePath}/sounds/Shugart/Shugart SA400 Close.ogg"/>
        <property name="soundShugartDrive" value="${resourcePath}/sounds/Shugart/Shugart SA400 Drive.ogg"/>
        <property name="soundShugartHead" value="${resourcePath}/sounds/Shugart/Shugart SA400 Head.ogg"/>
        <property name="soundShugartStop" value="${resourcePath}/sounds/Shugart/Shugart SA400 Stop.ogg"/>
        <property name="soundShugartAlign" value="${resourcePath}/sounds/Shugart/Shugart SA400 Align.ogg"/>
        <property name="soundAlpsOpen" value="${resourcePath}/sounds/Shugart/Shugart SA400 Open.ogg"/>
        <property name="soundAlpsClose" value="${resourcePath}/sounds/Shugart/Shugart SA400 Close.ogg"/>
        <property name="soundAlpsDrive" value="${resourcePath}/sounds/Alps/Alps 2124A Drive.ogg"/>
        <property name="soundAlpsHead" value="${resourcePath}/sounds/Alps/Alps 2124A Head.ogg"/>
        <property name="soundAlpsStop" value="${resourcePath}/sounds/Alps/Alps 2124A Stop.ogg"/>
        <property name="soundAlpsAlign" value="${resourcePath}/sounds/Shugart/Shugart SA400 Align.ogg"/>
    </component>
    <component id="appleDiskII.doorPlayer" class="AudioPlayer">
        <property name="audio" ref="audio"/>
    </component>
    <component id="appleDiskII.drivePlayer" class="AudioPlayer">
        <property name="audio" ref="audio"/>
        <property name="loop" value="1"/>
    </component>
    <component id="appleDiskII.headPlayer" class="AudioPlayer">
        <property name="audio" ref="audio"/>
        <property name="controlBus" ref="appleDiskIICard.controlBus"/>
    </component>
    
    <device id="appleDiskII2" label="Apple Disk II" image="images/Apple/Apple Disk II.png">
        <setting ref="appleDiskII2.drive" name="forceWriteProtected" label="Force Write Protected" type="checkbox"/>
        <setting ref="appleDiskII2.drive" name="mechanism" label="Mechanism" type="select" options="Shugart,Alps"/>
        <setting ref="appleDiskII2.drive" name="volume" label="Volume" type="slider" options="0,1"/>
        <setting ref="appleDiskII2.drive" name="optimalBitTime" label="Optimal Bit Timing" type="select" options="3.000μs,3.125μs,3.250μs,3.375μs,3.500μs,3.625μs,3.750μs,3.875μs,4.000μs,4.125μs,4.250μs,4.375μs,4.500μs,4.625μs,4.750μs,4.875μs,5.000μs"/>
        <setting ref="appleDiskII2.drive" name="random1Percentage" label="Weak Bits 1's %" type="select" options="0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100"/>
        <setting ref="appleDiskII2.drive" name="jitterPercentage" label="Jitter Rate %" type="select" options="0,1,2,3,4,5"/>
        <setting ref="appleDiskII2.drive" name="headWindowWidth" label="Head Window Width" type="select" options="3 bits,4 bits,5 bits"/>
        <setting ref="appleDiskII2.drive" name="headWindowDelay" label="Head Window Delay" type="checkbox"/>
    </device>
    <connector id="appleDiskII2.connector" type="Apple Disk Drive Port">
        <inlet ref="appleDiskII2.drive" property="controlBus" outletRef="controlBus"/>
        <inlet ref="appleDiskII2.headPlayer" property="controlBus" outletRef="controlBus"/>
    </connector>
    <component id="appleDiskII2.drive" class="AppleDiskDrive525">
        <property name="device" ref="appleDiskII2"/>
        <property name="controlBus" ref="appleDiskIICard.controlBus"/>
        <property name="diskImage" value=""/>
        <property name="track" value="0"/>
        <property name="forceWriteProtected" value="0"/>
        <property name="doorPlayer" ref="appleDiskII2.doorPlayer"/>
        <property name="drivePlayer" ref="appleDiskII2.drivePlayer"/>
        <property name="headPlayer" ref="appleDiskII2.headPlayer"/>
        <property name="imageDriveOff" value="images/Apple/Apple Disk II.png"/>
        <property name="imageDriveInUse" value="images/Apple/Apple Disk II In Use.png"/>
        <property name="mechanism" value="Shugart"/>
        <property name="volume" value="0.5"/>
        <property name="optimalBitTime" value="4.000μs"/>
        <property name="random1Percentage" value="30"/>
        <property name="jitterPercentage" value="0"/>
        <property name="headWindowWidth" value="4 bits"/>
        <property name="headWindowDelay" value="1"/>
        <property name="soundShugartOpen" value="${resourcePath}/sounds/Shugart/Shugart SA400 Open.ogg"/>
        <property name="soundShugartClose" value="${resourcePath}/sounds/Shugart/Shugart SA400 Close.ogg"/>
        <property name="soundShugartDrive" value="${resourcePath}/sounds/Shugart/Shugart SA400 Drive.ogg"/>
        <property name="soundShugartHead" value="${resourcePath}/sounds/Shugart/Shugart SA400 Head.ogg"/>
        <property name="soundShugartStop" value="${resourcePath}/sounds/Shugart/Shugart SA400 Stop.ogg"/>
        <property name="soundShugartAlign" value="${resourcePath}/sounds/Shugart/Shugart SA400 Align.ogg"/>
        <property name="soundAlpsOpen" value="${resourcePath}/sounds/Shugart/Shugart SA400 Open.ogg"/>
        <property name="soundAlpsClose" value="${resourcePath}/sounds/Shugart/Shugart SA400 Close.ogg"/>
        <property name="soundAlpsDrive" value="${resourcePath}/sounds/Alps/Alps 2124A Drive.ogg"/>
        <property name="soundAlpsHead" value="${resourcePath}/sounds/Alps/Alps 2124A Head.ogg"/>
        <property name="soundAlpsStop" value="${resourcePath}/sounds/Alps/Alps 2124A Stop.ogg"/>
        <property name="soundAlpsAlign" value="${resourcePath}/sounds/Shugart/Shugart SA400 Align.ogg"/>
    </component>
    <component id="appleDiskII2.doorPlayer" class="AudioPlayer">
        <property name="audio" ref="audio"/>
    </component>
    <component id="appleDiskII2.drivePlayer" class="AudioPlayer">
        <property name="audio" ref="audio"/>
        <property name="loop" value="1"/>
    </component>
    <component id="appleDiskII2.headPlayer" class="AudioPlayer">
        <property name="audio" ref="audio"/>
        <property name="controlBus" ref="appleDiskIICard.controlBus"/>
    </component>
</edl>
