[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] [commit] Return incoming OSC 'b' type arguments in an Int8Array



The interpreter was returning nil.  Int8Array seems to be the
appropriate type for representing byte vectors in SC.  Since the 'at'
method returns a signed integer value, as expected, the method:

+ Int8Array {
	byteAt {
		arg index;
		var n;
		n = this.at(index);
		if(n.isNegative,{^n+256},{^n});
	}
}

is a useful variant.