for (int idev = 0; idev < PatchEdit.appConfig.deviceCount(); idev++) {   Device dev = PatchEdit.appConfig.getDevice(idev); for (int idrv = 0; idrv < dev.driverCount(); idrv++) { Driver drv = dev.getDriver(idrv); if ((drv instanceof Converter) && drv.supportsPatch(patchString, this)) { patarray = ((Converter) drv).extractPatch(this); if (patarray != null) break search; }
for (int idrv = 0; idrv < dev.driverCount(); idrv++) { Driver drv = dev.getDriver(idrv); if ((drv instanceof Converter) && drv.supportsPatch(patchString, this)) { patarray = ((Converter) drv).extractPatch(this); if (patarray != null) break search;
    Patch[] dissect() {	Patch[] patarray;    search:	{	    StringBuffer patchString = this.getPatchHeader();	    // When a Converter is found 'deviceNum' is used.  Why do	    // we need this outermost loop?  - Hiroo	    for (int idev = 0; idev < PatchEdit.appConfig.deviceCount(); idev++) {		// Do it for all converters. They should be at the		// beginning of the driver list!		Device dev = PatchEdit.appConfig.getDevice(idev);		for (int idrv = 0; idrv < dev.driverCount(); idrv++) {		    Driver drv = dev.getDriver(idrv);		    if ((drv instanceof Converter)			&& drv.supportsPatch(patchString, this)) {			patarray = ((Converter) drv).extractPatch(this);			if (patarray != null)			    break search; // found!		    }		}	    } //    idev++;	    // No conversion. Try just the original patch....	    return new Patch[] {this};	}	// Conversion was sucessfull, we have at least one	// converted patch assign the original deviceNum and	// individual driverNum to each patch of patarray	for (int i = 0; i < patarray.length; i++) {	    // set deviceNum field	    patarray[i].deviceNum = deviceNum; // Can we use 'dev' for this instance?	    // set driverNum field	    Device dev = PatchEdit.appConfig.getDevice(deviceNum);	    StringBuffer patchString = patarray[i].getPatchHeader();	    for (int jdrv = 0; jdrv < dev.driverCount(); jdrv++) {		Driver drv = dev.getDriver(jdrv);		if (drv.supportsPatch(patchString, patarray[i]))		    patarray[i].driverNum = jdrv;	    }	}	return patarray;    }