code: public void setXMType(int flag)
  	{
  		on = (flag&0x01)!=0;
  		sustain = (flag&0x02)!=0;
  		loop = (flag&0x04)!=0;
  		carry = filter = false;
  	}
docs: Sets the boolean values corresponding to the flag value
  XM-Version
  @since 19.06.2006
  @param flag