krähemann.com

AgsOpenSf2Instrument

AgsOpenSf2Instrument — open Soundfont2 instrument

Stability Level

Stable, unless otherwise indicated

Properties

AgsAudio * audio Read / Write
char * filename Read / Write
char * instrument Read / Write
AgsIpatch * ipatch Read / Write
char * 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


AGS_IS_OPEN_SF2_INSTRUMENT()

#define AGS_IS_OPEN_SF2_INSTRUMENT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPEN_SF2_INSTRUMENT))

AGS_IS_OPEN_SF2_INSTRUMENT_CLASS()

#define AGS_IS_OPEN_SF2_INSTRUMENT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_OPEN_SF2_INSTRUMENT))

AGS_OPEN_SF2_INSTRUMENT()

#define AGS_OPEN_SF2_INSTRUMENT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPEN_SF2_INSTRUMENT, AgsOpenSf2Instrument))

AGS_OPEN_SF2_INSTRUMENT_CLASS()

#define AGS_OPEN_SF2_INSTRUMENT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPEN_SF2_INSTRUMENT, AgsOpenSf2InstrumentClass))

AGS_OPEN_SF2_INSTRUMENT_GET_CLASS()

#define AGS_OPEN_SF2_INSTRUMENT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPEN_SF2_INSTRUMENT, AgsOpenSf2InstrumentClass))

ags_open_sf2_instrument_get_type ()

GType
ags_open_sf2_instrument_get_type ();

Types and Values

AGS_TYPE_OPEN_SF2_INSTRUMENT

#define AGS_TYPE_OPEN_SF2_INSTRUMENT                (ags_open_sf2_instrument_get_type())

struct AgsOpenSf2Instrument

struct AgsOpenSf2Instrument;

struct AgsOpenSf2InstrumentClass

struct AgsOpenSf2InstrumentClass {
  AgsTaskClass task;
};

Property Details

The “audio” property

  “audio”                    AgsAudio *

The assigned AgsAudio

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Since: 3.0.0


The “filename” property

  “filename”                 char *

The assigned filename.

Owner: AgsOpenSf2Instrument

Flags: Read / Write

Default value: NULL

Since: 3.0.0


The “instrument” property

  “instrument”               char *

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”                   char *

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