AgsMidiin

AgsMidiin — Input from sequencer

Functions

Properties

AgsApplicationContext * application-context Read / Write
gpointer application-mutex Read / Write
gpointer attack Read
gdouble bpm Read / Write
gpointer buffer Read
gdouble delay-factor Read / Write
gchar * 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_error_quark ()

GQuark
ags_midiin_error_quark ();

ags_midiin_switch_buffer_flag ()

void
ags_midiin_switch_buffer_flag (AgsMidiin *midiin);

The buffer flag indicates the currently played buffer.

Parameters

midiin

an AgsMidiin

 

Since: 1.0.0


ags_midiin_new ()

AgsMidiin *
ags_midiin_new (GObject *application_context);

Creates an AgsMidiin, refering to application_context .

Parameters

application_context

the AgsApplicationContext

 

Returns

a new AgsMidiin

Since: 1.0.0


AGS_IS_MIDIIN()

#define AGS_IS_MIDIIN(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 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\0"

AGS_MIDIIN_DEFAULT_OSS_DEVICE

#define AGS_MIDIIN_DEFAULT_OSS_DEVICE "/dev/midi00\0"

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_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

   

AGS_MIDIIN_ALSA

   

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 object;
};

Property Details

The “application-context” property

  “application-context”      AgsApplicationContext *

The assigned AgsApplicationContext

Flags: Read / Write

Since: 1.0.0


The “application-mutex” property

  “application-mutex”        gpointer

The assigned application mutex

Flags: Read / Write

Since: 1.0.0


The “attack” property

  “attack”                   gpointer

Attack of the buffer

Flags: Read

Since: 1.0.0


The “bpm” property

  “bpm”                      gdouble

Beats per minute

Flags: Read / Write

Allowed values: [1,240]

Default value: 120

Since: 1.0.0


The “buffer” property

  “buffer”                   gpointer

The buffer

Flags: Read

Since: 1.0.0


The “delay-factor” property

  “delay-factor”             gdouble

tact

Flags: Read / Write

Allowed values: [0,16]

Default value: 1

Since: 1.0.0


The “device” property

  “device”                   gchar *

The alsa sequencer indentifier

Flags: Read / Write

Default value: "hw:0"

Since: 1.0.0