File Formats
  • Audio
  • Video
  • Images
  • 3D & CAD
  • Documents
  • Data
  • Code
  • System
Audio
  • Uncompressed
  • Lossless
  • Lossy
  • MIDI & trackers
  • Music projects
  • Instruments & samples
  • Playlists
  1. Home
  2. Audio
  3. Uncompressed
  4. WAV
  5. Metadata chunks
  6. smpl
.WAV
  • Overview
  • RIFF chunks
  • Format chunk
  • Sample data
  • Metadata chunks
    • fact
    • LIST INFO
    • cue
    • smpl
    • bext
  • RF64

smpl chunk

The smpl chunk lets a sampler play a WAV file as an instrument. It gives the note the recording was made at, a fine tuning, and any number of loops, so a short sample can sustain for as long as a key is held.

Fields

OffsetSizeTypeNameDescription
04u32dwManufacturerMIDI manufacturer ID of the intended sampler, or 0
44u32dwProductthe manufacturer’s product code, or 0
84u32dwSamplePeriodthe length of one sample in nanoseconds: 22,675 for 44,100 Hz
124u32dwMIDIUnityNotethe MIDI note that plays the sample unchanged: 60 is middle C
164u32dwMIDIPitchFractiona fraction of a semitone above the unity note: 0x80000000 is 50 cents
204u32dwSMPTEFormat0, or a SMPTE frame rate: 24, 25, 29 (30 drop frame) or 30
244u32dwSMPTEOffseta SMPTE time at which the sample starts
284u32cSampleLoopsthe number of loop records
324u32cbSamplerDatathe size of extra sampler data after the loops
3624 eachrecordloopsthe loops, laid out below

Offsets are from the start of the chunk’s data.

Loop

OffsetSizeTypeNameDescription
04u32dwIdentifieran ID, which can match a cue point
44u32dwType0 forward, 1 alternating (forward then backward), 2 backward
84u32dwStartthe first sample frame of the loop
124u32dwEndthe last sample frame of the loop, which is played
164u32dwFractiona fraction of a sample for finer loop points
204u32dwPlayCounthow many times to play the loop: 0 means forever
© 2026 fileformats.org About Contact Made by Lewpen