code: protected List<Sample> getSamples(long startSample, long endSample, Track track) {
          // since startSample and endSample are one-based substract 1 before addressing list elements
          return track.getSamples().subList(l2i(startSample) - 1, l2i(endSample) - 1);
      }
docs: Gets all samples starting with <code>startSample</code> (one based -&gt; one is the first) and
  ending with <code>endSample</code> (exclusive).
  
  @param startSample low endpoint (inclusive) of the sample sequence
  @param endSample   high endpoint (exclusive) of the sample sequence
  @param track       source of the samples
  @return a <code>List&lt;Sample&gt;</code> of raw samples