SampleHeader

The SampleHeader object contains all the meta data for a sample.

Table of Contents

SampleHeader.name

This name should be unique.

SampleHeader.start

  • <number> - The start of the sample data in the smpl chunk.

Note that the sample data in the Sample object is already the correct sample data.

SampleHeader.end

  • <number> - The end of the sample data in the smpl chunk.

Note that the sample data in the Sample object is already the correct sample data.

SampleHeader.startLoop

  • <number> - The index in sample data points, where the sample should start the loop.

The startLoop index is corrected by the start value.

SampleHeader.endLoop

  • <number> - The index in sample data points, where the sample should end the loop.

The endLoop index is corrected by the start value.

SampleHeader.sampleRate

SampleHeader.originalPitch

  • <number> - The MIDI key number of the recorded pitch of the sample.

This is a number between 0 and 127, or 255 if the sample is unpitched.

SampleHeader.pitchCorrection

  • <number> - The pitch correction in cents that should be applied to the sample on playback.

This is to compensate for any pitch errors during the recording of the sample.

  • <number> - The sample header index of the associated left or right sample.

Both samples should be played at the same time, with the pitch being controlled by the right sample's generators.

SampleHeader.type

results matching ""

    No results matching ""