Returns the sample at index i. This uses 1-based indexing, in line with the way indexing is done in XM.