AgsMidiin

AgsMidiin — Input from sequencer

Functions

Properties

gpointer attack Read
double bpm Read / Write
gpointer buffer Read
double delay-factor Read / Write
char * device Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsMidiin

Implemented Interfaces

AgsMidiin implements AgsConnectable and AgsSequencer.

Includes

#include <ags/audio/ags_midiin.h>

Description

AgsMidiin represents a sequencer and supports midi input.

Functions

AGS_MIDIIN_GET_OBJ_MUTEX()

#define AGS_MIDIIN_GET_OBJ_MUTEX(obj) (&(((AgsMidiin *) obj)->obj_mutex))

ags_midiin_error_quark ()

GQuark
ags_midiin_error_quark ();

ags_midiin_test_flags ()

gboolean
ags_midiin_test_flags (AgsMidiin *midiin,
                       guint flags);

Test flags to be set on midiin .

Parameters

midiin

the AgsMidiin

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_midiin_set_flags ()

void
ags_midiin_set_flags (AgsMidiin *midiin,
                      guint flags);

Enable a feature of midiin .

Parameters

midiin

the AgsMidiin

 

flags

see AgsMidiinFlags

 

Since: 3.0.0


ags_midiin_unset_flags ()

void
ags_midiin_unset_flags (AgsMidiin *midiin,
                        guint flags);

Disable a feature of midiin .

Parameters

midiin

the AgsMidiin

 

flags

see AgsMidiinFlags

 

Since: 3.0.0


ags_midiin_switch_buffer_flag ()

void
ags_midiin_switch_buffer_flag (AgsMidiin *midiin);

The buffer flag indicates the currently played buffer.

Parameters

midiin

the AgsMidiin

 

Since: 3.0.0


ags_midiin_new ()

AgsMidiin *
ags_midiin_new ();

Creates a new instance of AgsMidiin.

Returns

the new AgsMidiin

Since: 3.0.0


AGS_IS_MIDIIN()

#define AGS_IS_MIDIIN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MIDIIN))

AGS_IS_MIDIIN_CLASS()

#define AGS_IS_MIDIIN_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_MIDIIN))

AGS_MIDIIN()

#define AGS_MIDIIN(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MIDIIN, AgsMidiin))

AGS_MIDIIN_CLASS()

#define AGS_MIDIIN_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_MIDIIN, AgsMidiin))

AGS_MIDIIN_GET_CLASS()

#define AGS_MIDIIN_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_MIDIIN, AgsMidiinClass))

ags_midiin_get_type ()

GType
ags_midiin_get_type ();

Types and Values

AGS_MIDIIN_DEFAULT_ALSA_DEVICE

#define AGS_MIDIIN_DEFAULT_ALSA_DEVICE "hw:0,0"

AGS_MIDIIN_DEFAULT_OSS_DEVICE

#define AGS_MIDIIN_DEFAULT_OSS_DEVICE "/dev/midi00"

AGS_MIDIIN_DEFAULT_BUFFER_SIZE

#define AGS_MIDIIN_DEFAULT_BUFFER_SIZE (4096)

enum AgsMidiinFlags

Enum values to control the behavior or indicate internal state of AgsMidiin by enable/disable as flags.

Members

AGS_MIDIIN_ADDED_TO_REGISTRY

the midiin was added to registry, see AgsConnectable::add_to_registry()

 

AGS_MIDIIN_CONNECTED

indicates the midiin was connected by calling AgsConnectable::connect()

 

AGS_MIDIIN_BUFFER0

ring-buffer 0

 

AGS_MIDIIN_BUFFER1

ring-buffer 1

 

AGS_MIDIIN_BUFFER2

ring-buffer 2

 

AGS_MIDIIN_BUFFER3

ring-buffer 3

 

AGS_MIDIIN_ATTACK_FIRST

use first attack, instead of second one

 

AGS_MIDIIN_RECORD

is recording

 

AGS_MIDIIN_OSS

use OSS4 backend

 

AGS_MIDIIN_ALSA

use ALSA backend

 

AGS_MIDIIN_SHUTDOWN

stop recording

 

AGS_MIDIIN_START_RECORD

just started recording

 

AGS_MIDIIN_NONBLOCKING

do non-blocking calls

 

AGS_MIDIIN_INITIALIZED

recording is initialized

 

enum AgsMidiinSyncFlags

Enum values to control the synchronization between sequencer and poll.

Members

AGS_MIDIIN_PASS_THROUGH

do not sync

 

AGS_MIDIIN_INITIAL_POLL

initial poll

 

AGS_MIDIIN_POLL_WAIT

sync wait, sequencer conditional lock

 

AGS_MIDIIN_POLL_DONE

sync done, sequencer conditional lock

 

AGS_MIDIIN_POLL_FINISH_WAIT

sync wait, client conditional lock

 

AGS_MIDIIN_POLL_FINISH_DONE

sync done, client conditional lock

 

AGS_MIDIIN_POLL_SWITCH_BUFFER

switch buffer

 

AGS_MIDIIN_ERROR

#define AGS_MIDIIN_ERROR (ags_midiin_error_quark())

enum AgsMidiinError

Members

AGS_MIDIIN_ERROR_LOCKED_SEQUENCER

   

AGS_TYPE_MIDIIN

#define AGS_TYPE_MIDIIN                (ags_midiin_get_type())

struct AgsMidiin

struct AgsMidiin;

struct AgsMidiinClass

struct AgsMidiinClass {
  GObjectClass gobject;
};

Property Details

The “attack” property

  “attack”                   gpointer

Attack of the buffer

Owner: AgsMidiin

Flags: Read

Since: 3.0.0


The “bpm” property

  “bpm”                      double

Beats per minute

Owner: AgsMidiin

Flags: Read / Write

Allowed values: [1,240]

Default value: 120

Since: 3.0.0


The “buffer” property

  “buffer”                   gpointer

The buffer

Owner: AgsMidiin

Flags: Read

Since: 3.0.0


The “delay-factor” property

  “delay-factor”             double

tact

Owner: AgsMidiin

Flags: Read / Write

Allowed values: [0,16]

Default value: 1

Since: 3.0.0


The “device” property

  “device”                   char *

The alsa sequencer indentifier

Owner: AgsMidiin

Flags: Read / Write

Default value: "hw:0,0"

Since: 3.0.0