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_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: 0.7.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\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

Members

AGS_MIDIIN_BUFFER0

   

AGS_MIDIIN_BUFFER1

   

AGS_MIDIIN_BUFFER2

   

AGS_MIDIIN_BUFFER3

   

AGS_MIDIIN_ATTACK_FIRST

   

AGS_MIDIIN_RECORD

   

AGS_MIDIIN_OSS

   

AGS_MIDIIN_ALSA

   

AGS_MIDIIN_SHUTDOWN

   

AGS_MIDIIN_START_RECORD

   

AGS_MIDIIN_NONBLOCKING

   

AGS_MIDIIN_INITIALIZED

   

enum AgsMidiinSyncFlags

Members

AGS_MIDIIN_PASS_THROUGH

   

AGS_MIDIIN_INITIAL_POLL

   

AGS_MIDIIN_POLL_WAIT

   

AGS_MIDIIN_POLL_DONE

   

AGS_MIDIIN_POLL_FINISH_WAIT

   

AGS_MIDIIN_POLL_FINISH_DONE

   

AGS_MIDIIN_POLL_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: 0.7.0


The “application-mutex” property

  “application-mutex”        gpointer

The assigned application mutex

Flags: Read / Write

Since: 0.7.0


The “attack” property

  “attack”                   gpointer

Attack of the buffer

Flags: Read

Since: 0.7.0


The “bpm” property

  “bpm”                      gdouble

Beats per minute

Flags: Read / Write

Allowed values: [1,240]

Default value: 120

Since: 0.7.0


The “buffer” property

  “buffer”                   gpointer

The buffer

Flags: Read

Since: 0.7.0


The “delay-factor” property

  “delay-factor”             gdouble

tact

Flags: Read / Write

Allowed values: [0,16]

Default value: 1

Since: 0.7.0


The “device” property

  “device”                   gchar *

The alsa sequencer indentifier

Flags: Read / Write

Default value: "hw:0"

Since: 0.7.0