class Haematite::SampleHeader

Overview

Represents a sample in the SoundFont.

Defined in:

haematite/sampleheader.cr

Constant Summary

DEFAULT = SampleHeader.new

Class Method Summary

Instance Method Summary

Class Method Detail

def self.fromChunk(stream : IO, size) : Array(SampleHeader) #

Returns an array of SampleHeader instances of size elements by reading data from the given stream.


Instance Method Detail

def endLoop : Int32 #

The loop end point of the sample in the sample data.


def finish : Int32 #

The end point of the sample in the sample data.


def link : UInt16 #

def name : String #

The name of the sample.


def originalPitch : UInt8 #

The key number of the recorded pitch of the sample.


def pitchCorrection : Int8 #

The pitch correction in cents that should be applied to the sample on playback.


def sampleRate : Int32 #

The sample rate of the sample.


def start : Int32 #

The start point of the sample in the sample data.


def startLoop : Int32 #

The loop start point of the sample in the sample data.


def t_s(io : IO) #

def type : SampleType #