9. Sampler Metadata

9.1. Class Reference

class wavinfo.wave_smpl_reader.WavSmplReader(smpl_data: bytes)
manufacturer: int

The MIDI Manufacturer’s Association code for the sampler manufactuer, or 0 if not specific.

midi_note: int

The MIDI note number for the loops in this sample

midi_pitch_detune_cents: int

The number of semitones above the MIDI note the loops tune for.

product: int

The manufacturer-assigned code for their specific sampler model, or 0 if not specific.

sample_loops: List[WaveSmplLoop]

List of loops in the file.

sample_period_ns: int

The number of nanoseconds in one audio frame.

sampler_udata: bytes | None

Sampler-specific user data.

smpte_format: int

SMPTE timecode format, one of (0, 24, 25, 29, 30)

smpte_offset: Tuple[int, int, int, int]

The SMPTE offset to apply, as a tuple of four ints representing hh, mm, ss, ff

class wavinfo.wave_smpl_reader.WaveSmplLoop(ident, loop_type, start, end, detune_cents, repetition_count)
detune_cents: int

Alias for field number 4

end: int

Alias for field number 3

ident: int

Alias for field number 0

loop_type: int

Alias for field number 1

repetition_count: int

Alias for field number 5

start: int

Alias for field number 2