byte[] namebytes = new byte[32]; try { if (name.length() < 11) { name = name + "           "; } namebytes = name.getBytes("US-ASCII"); int oOffset = PATCHNAME_OFFSET + aOffset; for (int i = 0; i < PATCHNAME_SIZE; i++) { aSysex[oOffset++] = (byte) ((namebytes[i] & 0xF0) >> 4); aSysex[oOffset++] = (byte) (namebytes[i] & 0x0F); } } catch (Exception e) {}
setPatchName(p.sysex, name, HEADER_SIZE-1);
	static void setPatchName(byte aSysex[], String name, int aOffset)	{		byte[] namebytes = new byte[32];		try		{			if (name.length() < 11)			{				name = name + "           ";			}			namebytes = name.getBytes("US-ASCII");			int oOffset = PATCHNAME_OFFSET + aOffset;			for (int i = 0; i < PATCHNAME_SIZE; i++) 			{				aSysex[oOffset++] = (byte) ((namebytes[i] & 0xF0) >> 4);				aSysex[oOffset++] = (byte) (namebytes[i] & 0x0F);			}		}		catch (Exception e)		{}	}