class Haematite::SoundFont
- Haematite::SoundFont
- Reference
- Object
Overview
A SoundFont is a collection of samples and parameters used for sample-based synthesis. This is a virtual representation of an on-disk SoundFont.
Defined in:
haematite/soundfont.crConstructors
-
.new(stream : IO)
Creates a new
SoundFont
instance by reading data from the given stream. -
.new(filename : String | Path)
Loads SoundFont data from the given filename, creating a new
SoundFont
instance.
Instance Method Summary
-
#bitsPerSample : Int32
The bit depth used for this SoundFont's sample data.
-
#info : SoundFontInfo | Nil
The info on this SoundFont.
-
#info? : SoundFontInfo | Nil | Nil
The info on this SoundFont.
- #instrumentArray : Array(Haematite::Instrument)
-
#instruments : Slice(Instrument)
The instruments defined in this SoundFont.
- #presetArray : Array(Haematite::Preset)
-
#presets : Slice(Preset)
The presets stored in this SoundFont.
- #sampleHeaderArray : Array(Haematite::SampleHeader)
-
#sampleHeaders : Slice(SampleHeader)
The sample headers for this SoundFont.
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
-
#waveData : SoundFontPCMData
The SoundFont's sample data.
Constructor Detail
Loads SoundFont data from the given filename, creating a new SoundFont
instance.
Instance Method Detail
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>