Xeno-rat
Loading...
Searching...
No Matches
NAudio.SoundFont.SoundFont Class Reference

Represents a SoundFont. More...

Collaboration diagram for NAudio.SoundFont.SoundFont:

Public Member Functions

 SoundFont (string fileName)
 Loads a SoundFont from a file.
 
 SoundFont (Stream sfFile)
 Loads a SoundFont from a stream.
 
override string ToString ()
 Returns a formatted string containing information and presets chunks.
 

Properties

InfoChunk FileInfo [get]
 The File Info Chunk.
 
Preset[] Presets [get]
 The Presets.
 
Instrument[] Instruments [get]
 The Instruments.
 
SampleHeader[] SampleHeaders [get]
 The Sample Headers.
 
byte[] SampleData [get]
 The Sample Data.
 

Private Attributes

InfoChunk info
 
PresetsChunk presetsChunk
 
SampleDataChunk sampleData
 

Detailed Description

Represents a SoundFont.

Constructor & Destructor Documentation

◆ SoundFont() [1/2]

NAudio.SoundFont.SoundFont.SoundFont ( string fileName)
inline

Loads a SoundFont from a file.

Parameters
fileNameFilename of the SoundFont

◆ SoundFont() [2/2]

NAudio.SoundFont.SoundFont.SoundFont ( Stream sfFile)
inline

Loads a SoundFont from a stream.

Parameters
sfFilestream

Member Function Documentation

◆ ToString()

override string NAudio.SoundFont.SoundFont.ToString ( )
inline

Returns a formatted string containing information and presets chunks.

Returns
A string containing the information chunk and presets chunk.

This method returns a formatted string that includes the information chunk and presets chunk. The information chunk contains info , and the presets chunk contains presetsChunk .

Member Data Documentation

◆ info

InfoChunk NAudio.SoundFont.SoundFont.info
private

◆ presetsChunk

PresetsChunk NAudio.SoundFont.SoundFont.presetsChunk
private

◆ sampleData

SampleDataChunk NAudio.SoundFont.SoundFont.sampleData
private

Property Documentation

◆ FileInfo

InfoChunk NAudio.SoundFont.SoundFont.FileInfo
get

The File Info Chunk.

◆ Instruments

Instrument [] NAudio.SoundFont.SoundFont.Instruments
get

The Instruments.

◆ Presets

Preset [] NAudio.SoundFont.SoundFont.Presets
get

The Presets.

◆ SampleData

byte [] NAudio.SoundFont.SoundFont.SampleData
get

The Sample Data.

◆ SampleHeaders

SampleHeader [] NAudio.SoundFont.SoundFont.SampleHeaders
get

The Sample Headers.


The documentation for this class was generated from the following file: