struct Haematite::SoundFontVersion

Overview

Represents a version number within a SoundFont.

Defined in:

haematite/soundfont.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(major : Int16, minor : Int16) #

Creates a new SoundFontVersion instance.


def self.new(stream : IO) #

Creates a new SoundFontVersion instance by reading data from the given stream.


Instance Method Detail

def major : Int16 #

The major component of the version number.


def minor : Int16 #

The minor component of the version number.


def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).