class Haematite::Instrument

Overview

A representation of a SoundFont instrument.

Defined in:

haematite/instrument.cr

Constant Summary

DEFAULT = Instrument.new()

Class Method Summary

Instance Method Summary

Class Method Detail

def self.create(infos : Array(InstrumentInfo), zones : Array(Zone), samples : Array(SampleHeader)) : Array(Instrument) #

Creates an array of Instrument instances.


Instance Method Detail

def name : String #

The name of the instrument.


def regionArray : Array(Haematite::InstrumentRegion) #

Returns the InstrumentRegions for this instrument as an Array.


def regions : Slice(InstrumentRegion) #

Returns the InstrumentRegions for this instrument 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>