Please do not use this method. It's the internal implementation to receive midi commands.
420651
@Override
  public void send(MidiMessage message, long timeStamp) {
    if (this.launchpadReceiver != null && message instanceof ShortMessage) {
      ShortMessage sm = (ShortMessage) message;
      Pad pad = Pad.findMidi(sm);
      if (pad != null) {
        this.launchpadReceiver.receive(pad);
      }
    }
  }
545099
def removeStepListener(listener):
    
    if listener in _stepListeners:
        _stepListeners.remove(listener)
        return True
    warnings.warn(
        "removeStepListener(listener): listener %s not registered as step listener" % str(listener))
    return False
382204
def kill(self, dwExitCode = 0):
        
        hThread = self.get_handle(win32.THREAD_TERMINATE)
        win32.TerminateThread(hThread, dwExitCode)

        # Ugliest hack ever, won't work if many pieces of code are injected.
        # Seriously, what was I thinking? Lame! :(
        if self.pInjectedMemory is not None:
            try:
                self.get_process().free(self.pInjectedMemory)
                self.pInjectedMemory = None
            except Exception:
##                raise           # XXX DEBUG
                pass
688320
function(midiToks) {
          if (midiToks.length > 0) {
            var t = midiToks.shift();
            var p = t.token;
            if (t.type === "number")
              p = t.intt;
            return p;
          }
          else
            return null;
        }
239443
def reject(self):
        """"""
        self.canvas.unsetMapTool(self.tool)
        if self.previous_map_tool != self.tool:
            self.canvas.setMapTool(self.previous_map_tool)
        self.tool.reset()
        self.extent_selector_closed.emit()
        super(ExtentSelectorDialog, self).reject()
21407
def reject(self):
        
        if self.hideWindow():
            self.hideWindow().show()
            
        self.close()
        self.deleteLater()
984271
function() {
      if (this.__currentContextWithListener) {
        this.stopListening(this.__currentContextWithListener, this.__currentContextEventName, this.retrieve);
        this.stopListening(this.__currentContextWithListener, 'fetched:ids', this.retrieve);
        delete this.__currentContextWithListener;
        delete this.__currentContextEventName;
      }
    }
661961
def stop(self, force=False):
		
		if self._initialized:
			self.send(C1218TerminateRequest())
			data = self.recv()
			if data == b'\x00' or force:
				self._initialized = False
				self._toggle_bit = False
				return True
		return False
1268335
def note_on(self, channel, note, velocity):
        """"""
        return self.midi_event(NOTE_ON, channel, note, velocity)
231675
def reject(self):
        
        self.canvas.unsetMapTool(self.rectangle_map_tool)
        self.rectangle_map_tool.reset()

        super(OsmDownloaderDialog, self).reject()
361373
private void fireMusicSwapped(Music newMusic) {
		playing = false;
		for (int i=0;i<listeners.size();i++) {
			((MusicListener) listeners.get(i)).musicSwapped(this, newMusic);
		}
	}
293587
def write(self, filename):
        
        if not filename.endswith(('.mid', '.midi', '.MID', '.MIDI')):
            filename = filename + '.mid'
        pm = self.to_pretty_midi()
        pm.write(filename)
521763
def removeFromPlaylist(playlist,index,count,tracks)
      method = 'removeFromPlaylist'
      type = TODO
      args = {:playlist=>playlist,:index=>index,
        :count=>count,:tracks=>Rdio::keys(tracks)}
      return_object type,method,args,true
    end
358430
Rule MidiTranspose() {
		return Sequence(String("transpose"),
				OneOrMore(WSP()),
				Optional('-'),
				OneOrMore(DIGIT()))
			.label(MidiTranspose);
	}
877877
function(command) {
    var obj     = wysihtml5.commands[command],
        args    = wysihtml5.lang.array(arguments).get(),
        method  = obj && obj.stateValue;
    if (method) {
      args.unshift(this.composer);
      return method.apply(obj, args);
    } else {
      return false;
    }
  }
325668
def midi_event(self, event_type, channel, param1, param2=None):
        """"""
        assert event_type < 0x80 and event_type >= 0
        assert channel < 16 and channel >= 0
        tc = a2b_hex('%x%x' % (event_type, channel))
        if param2 is None:
            params = a2b_hex('%02x' % param1)
        else:
            params = a2b_hex('%02x%02x' % (param1, param2))
        return self.delta_time + tc + params
771660
function instrumentReq(config, req, resp) {
    var closer,
        timeout;

    config.idle_timeout = parseInt(config.idle_timeout, 10);
    if (config.idle_timeout > 0) {
        if (req.socket) {
            req.socket.setTimeout(config.idle_timeout);
        } else if (req.connection && req.connection.socket) {
            req.connection.socket.setTimeout(config.idle_timeout);
        }
    }

    config.inc_req_timeout = parseInt(config.inc_req_timeout, 10);
    // "incoming_timeout" deprecated, since it was never documented
    config.incoming_timeout = parseInt(config.incoming_timeout, 10);
    // sets the timeout on the request
    timeout = config.inc_req_timeout || config.incoming_timeout || globalIncoming;
    if (timeout) {
        closer = new Closer(resp, timeout);
        resp.on('finish', function() {
            closer.remove();
        });
        resp.on('close', function() {
            closer.remove();
        });
    }
}