class Haematite::SampleHeader
- Haematite::SampleHeader
- Reference
- Object
Overview
Represents a sample in the SoundFont.
Defined in:
haematite/sampleheader.crConstant Summary
-
DEFAULT =
SampleHeader.new
Class Method Summary
-
.fromChunk(stream : IO, size) : Array(SampleHeader)
Returns an array of
SampleHeader
instances ofsize
elements by reading data from the given stream.
Instance Method Summary
-
#endLoop : Int32
The loop end point of the sample in the sample data.
-
#finish : Int32
The end point of the sample in the sample data.
- #link : UInt16
-
#name : String
The name of the sample.
-
#originalPitch : UInt8
The key number of the recorded pitch of the sample.
-
#pitchCorrection : Int8
The pitch correction in cents that should be applied to the sample on playback.
-
#sampleRate : Int32
The sample rate of the sample.
-
#start : Int32
The start point of the sample in the sample data.
-
#startLoop : Int32
The loop start point of the sample in the sample data.
- #t_s(io : IO)
- #type : SampleType
Class Method Detail
Instance Method Detail
def pitchCorrection : Int8
#
The pitch correction in cents that should be applied to the sample on playback.