AgsMessage

AgsMessage

Functions

Types and Values

Description

Functions

ags_message_key_on ()

void
ags_message_key_on (AgsMessage *message,
                    gchar *note,
                    guint audio_channel,
                    gdouble velocity);

Notifies about key-off event.

Parameters

message

the AgsMessage

 

note

the note

 

audio_channel

the audio channel

 

velocity

the velocity

 

Since: 1.0.0


ags_message_key_off ()

void
ags_message_key_off (AgsMessage *message,
                     gchar *note,
                     guint audio_channel,
                     gdouble velocity);

ags_message_key_pressure ()

void
ags_message_key_pressure (AgsMessage *message,
                          gchar *note,
                          guint audio_channel,
                          gdouble pressure);

Notifies about key pressure event.

Parameters

message

the AgsMessage

 

note

the note

 

audio_channel

the audio channel

 

pressure

the pressure

 

Since: 1.0.0


ags_message_change_parameter ()

void
ags_message_change_parameter (AgsMessage *message,
                              gchar *note,
                              guint audio_channel,
                              gchar *control_specifier,
                              gdouble value);

Notifies about changed parameter.

Parameters

message

the AgsMessage

 

note

the note

 

audio_channel

the audio channel

 

control_specifier

the control specifier

 

value

the value

 

Since: 1.0.0


ags_message_change_mode ()

void
ags_message_change_mode (AgsMessage *message,
                         guint audio_channel,
                         guint mode,
                         gboolean enabled);

Notifies about changed mode.

Parameters

message

the AgsMessage

 

audio_channel

the audio channel

 

mode

the mode

 

enabled

TRUE if enabled, otherwise FALSE

 

Since: 1.0.0


ags_message_pitch_bend ()

void
ags_message_pitch_bend (AgsMessage *message,
                        gdouble pitch,
                        gdouble transmitter);

Notifies about pitch bend.

Parameters

message

the AgsMessage

 

pitch

the pitch

 

transmitter

the transmitter

 

Since: 1.0.0


ags_message_set_bpm ()

void
ags_message_set_bpm (AgsMessage *message,
                     gdouble bpm);

Notifies about modified bpm.

Parameters

message

the AgsMessage

 

bpm

the BPM

 

Since: 1.0.0


ags_message_set_delay_factor ()

void
ags_message_set_delay_factor (AgsMessage *message,
                              gdouble delay_factor);

Notifies about modified bpm.

Parameters

message

the AgsMessage

 

delay_factor

the delay factor

 

Since: 1.0.0


AGS_IS_MESSAGE()

#define AGS_IS_MESSAGE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MESSAGE))

AGS_IS_MESSAGE_INTERFACE()

#define AGS_IS_MESSAGE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_MESSAGE))

AGS_MESSAGE()

#define AGS_MESSAGE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MESSAGE, AgsMessage))

AGS_MESSAGE_GET_INTERFACE()

#define AGS_MESSAGE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_MESSAGE, AgsMessageInterface))

AGS_MESSAGE_INTERFACE()

#define AGS_MESSAGE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_MESSAGE, AgsMessageInterface))

Types and Values

enum AgsMessageMode

Members

AGS_MESSAGE_ALL_OFF

   

AGS_MESSAGE_RESET_ALL

   

AGS_MESSAGE_OMNI_MODE

   

AGS_MESSAGE_MONO_MODE

   

AGS_MESSAGE_POLY_MODE

   

AGS_TYPE_MESSAGE

#define AGS_TYPE_MESSAGE                    (ags_message_get_type())

AgsMessage


struct AgsMessageInterface

struct AgsMessageInterface {
  GTypeInterface interface;

  void (*key_on)(AgsMessage *message,
		 gchar *note,
		 guint audio_channel,
		 gdouble velocity);
  void (*key_off)(AgsMessage *message,
		  gchar *note,
		  guint audio_channel,
		  gdouble velocity);
  void (*key_pressure)(AgsMessage *message,
		       gchar *note,
		       guint audio_channel,
		       gdouble pressure);

  void (*change_parameter)(AgsMessage *message,
			   gchar *note,
			   guint audio_channel,
			   gchar *control_specifier,
			   gdouble value);

  void (*change_mode)(AgsMessage *message,
		      guint audio_channel,
		      guint mode,
		      gboolean enabled);

  void (*pitch_bend)(AgsMessage *message,
		     gdouble pitch,
		     gdouble transmitter);

  void (*set_bpm)(AgsMessage *message,
		  gdouble bpm);

  void (*set_delay_factor)(AgsMessage *message,
			   gdouble delay_factor);
};