         App.TOGGLE_MENU.dispatch { width: AppData.SUBMENU_PANNEL + AppData.MENU_PANNEL + AppData.MENU_PANNEL_BORDER }
         null
 
-    onMidiStateChange: (e) =>
-        # only shows menu if user has midi device, if midi device is disconnected, closes menu
-        if e.state is 'disconnected' and e.connection is 'closed'
-            @midi.visible = false
-            AppData.SHOW_MENU_PANNEL = false
-            App.TOGGLE_MENU.dispatch { width: 0 }
-        else if e.state is 'connected'
-            @midi.visible = true
-        null
-
     onPatchChanged: =>
         total = Object.keys(Session.patches).length + 1
 

        @select.alpha = 0
        @addChild @select

        App.MIDI.add @onMidiStateChange
        App.PATCH_CHANGED.add @onPatchChanged
        App.PRESET_CHANGED.add @onPresetChanged


        @addChild @presets

        @midi = new MenuButton AppData.ASSETS.sprite.textures['ic-midi.png'], 'midi'
        @midi.buttonClick = =>
            @openSubmenu 4
            null
