class Haematite::Preset

Overview

A representation of a SoundFont preset.

Defined in:

haematite/preset.cr

Constant Summary

DEFAULT = Preset.new

Class Method Summary

Instance Method Summary

Class Method Detail

def self.create(infos : Array(PresetInfo), zones : Array(Zone), instruments : Array(Instrument)) : Array(Preset) #

Creates an array of Preset instances.


Instance Method Detail

def bankNumber : UInt16 #

The bank this preset is part of.


def name : String #

The name of the preset.


def patchNumber : UInt16 #

The patch number associated with this preset.


def regionArray : Array(Haematite::PresetRegion) #

The regions that are covered by this preset, returned as an array.


def regions : Slice(PresetRegion) #

The regions that are covered by this preset, returned as a read-only Slice.


def to_s(io : IO) #
Description copied from class Reference

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>