krähemann.com

AgsOpenSf2Instrument

AgsOpenSf2Instrument — open Soundfont2 instrument

Stability Level

Stable, unless otherwise indicated

Properties

AgsAudio * audio Read / Write
gchar * filename Read / Write
gchar * instrument Read / Write
AgsIpatch * ipatch Read / Write
gchar * preset Read / Write
guint start-pad Read / Write

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsOpenSf2Instrument

Includes

#include <ags/audio/task/ags_open_sf2_instrument.h>

Description

The AgsOpenSf2Instrument task opens Soundfont2 instruments.

Functions

ags_open_sf2_instrument_new ()

AgsOpenSf2Instrument *
ags_open_sf2_instrument_new (AgsAudio *audio,
                             AgsIpatch *ipatch,
                             gchar *filename,
                             gchar *preset,
                             gchar *instrument,
                             guint start_pad);

Creates an AgsOpenSf2Instrument.

Parameters

audio

the AgsAudio

 

ipatch

the AgsIpatch or NULL

 

filename

the Soundfont2 file

 

preset

the preset

 

instrument

the instrument

 

start_pad

the pad start

 

Returns

an new AgsOpenSf2Instrument.

Since: 3.0.0

Property Details

The “audio” property

  “audio”                    AgsAudio *

The assigned AgsAudio

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Since: 3.0.0


The “filename” property

  “filename”                 gchar *

The assigned filename.

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Default value: NULL

Since: 3.0.0


The “instrument” property

  “instrument”               gchar *

The assigned instrument.

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Default value: NULL

Since: 3.0.0


The “ipatch” property

  “ipatch”                   AgsIpatch *

The assigned AgsIpatch

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Since: 3.0.0


The “preset” property

  “preset”                   gchar *

The assigned preset.

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Default value: NULL

Since: 3.0.0


The “start-pad” property

  “start-pad”                guint

The assigned start-pad.

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Default value: 0

Since: 3.0.0