Top | ![]() |
![]() |
![]() |
![]() |
Functions
Properties
|
audio | Read |
buffer-size | Read / Write | |
format | Read / Write | |
|
machine-name | Read / Write |
samplerate | Read / Write |
Signals
buffer-size-changed | ||
find-port | ||
format-changed | ||
map-recall | ||
refresh-port | ||
resize-audio-channels | ||
resize-pads | ||
samplerate-changed | ||
stop |
Types and Values
#define | AGS_MACHINE_DEFAULT_VERSION |
#define | AGS_MACHINE_DEFAULT_BUILD_ID |
enum | AgsMachineFlags |
enum | AgsMachineFileInputFlags |
enum | AgsMachineMappingFlags |
enum | AgsMachineEditOptions |
enum | AgsMachineConnectionOptions |
enum | AgsMachineExportOptions |
enum | AgsMachineImportOptions |
struct | AgsMachineInputLine |
struct | AgsMachineAutomationPort |
#define | AGS_TYPE_MACHINE |
struct | AgsMachine |
struct | AgsMachineClass |
Object Hierarchy
GObject ╰──GInitiallyUnowned ╰──GtkWidget ╰──GtkGrid ╰── AgsMachine ├── AgsAudiorec ├──AgsDesk ├── AgsDrum ├── AgsDssiBridge ├── AgsEqualizer10 ├── AgsFFPlayer ├── AgsFMSyncsynth ├── AgsFMSynth ├── AgsHybridFMSynth ├── AgsHybridSynth ├── AgsLadspaBridge ├── AgsLiveDssiBridge ├── AgsLiveLv2Bridge ├── AgsLv2Bridge ├── AgsMatrix ├── AgsMixer ├── AgsPanel ├── AgsPitchSampler ├── AgsSF2Synth ├──AgsSFZSynth ├── AgsSpectrometer ├── AgsSyncsynth ╰── AgsSynth
Implemented Interfaces
AgsMachine implements
Functions
AGS_MACHINE_AUTOMATION_PORT()
#define AGS_MACHINE_AUTOMATION_PORT(ptr) ((AgsMachineAutomationPort *)(ptr))
ags_machine_input_line_sort_func ()
gint ags_machine_input_line_sort_func (,
gconstpointer a);
gconstpointer b
Sort machine input line.
Since:
ags_machine_input_line_alloc ()
AgsMachineInputLine * ags_machine_input_line_alloc ();
Allocate
Since:
ags_machine_get_machine_name ()
gchar * ags_machine_get_machine_name (AgsMachine *machine
);
Get machine name of machine
.
Since:
ags_machine_set_machine_name ()
void ags_machine_set_machine_name (AgsMachine *machine
,);
gchar *machine_name
ags_machine_reset_pattern_envelope ()
void ags_machine_reset_pattern_envelope (AgsMachine *machine
);
Reset pattern envelope from preset.
Since:
ags_machine_automation_port_alloc ()
AgsMachineAutomationPort * ags_machine_automation_port_alloc (,
GType channel_type);
gchar *control_name
Allocate AgsMachineAutomationPort
Since:
ags_machine_automation_port_free ()
void ags_machine_automation_port_free (AgsMachineAutomationPort *automation_port
);
Free automation_port
Since:
ags_machine_automation_port_find_channel_type_with_control_name ()
GList * ags_machine_automation_port_find_channel_type_with_control_name (,
GList *list,
GType channel_type);
gchar *control_name
Find
Parameters
list |
a |
|
channel_type |
the |
|
control_name |
the control name as string to match |
Since:
ags_machine_get_output_pad ()
GList * ags_machine_get_output_pad (AgsMachine *machine
);
Get line member of machine
.
Since:
ags_machine_add_output_pad ()
void ags_machine_add_output_pad (AgsMachine *machine
,AgsPad *output_pad
,,
guint x,
guint y,
guint width);
guint height
Add output_pad
to machine
.
Parameters
machine |
the AgsMachine |
|
output_pad |
the AgsPad |
|
x |
the x position |
|
y |
the y position |
|
width |
the width |
|
height |
the height |
Since:
ags_machine_remove_output_pad ()
void ags_machine_remove_output_pad (AgsMachine *machine
,AgsPad *output_pad
);
Remove output_pad
from machine
.
Since:
ags_machine_get_input_pad ()
GList * ags_machine_get_input_pad (AgsMachine *machine
);
Get line member of machine
.
Since:
ags_machine_add_input_pad ()
void ags_machine_add_input_pad (AgsMachine *machine
,AgsPad *input_pad
,,
guint x,
guint y,
guint width);
guint height
Add input_pad
to machine
.
Parameters
machine |
the AgsMachine |
|
input_pad |
the AgsPad |
|
x |
the x position |
|
y |
the y position |
|
width |
the width |
|
height |
the height |
Since:
ags_machine_remove_input_pad ()
void ags_machine_remove_input_pad (AgsMachine *machine
,AgsPad *input_pad
);
Remove input_pad
from machine
.
Since:
ags_machine_samplerate_changed ()
void ags_machine_samplerate_changed (AgsMachine *machine
,,
guint samplerate);
guint old_samplerate
Notify about samplerate changed.
Since:
ags_machine_buffer_size_changed ()
void ags_machine_buffer_size_changed (AgsMachine *machine
,,
guint buffer_size);
guint old_buffer_size
Notify about buffer_size changed.
Since:
ags_machine_format_changed ()
void ags_machine_format_changed (AgsMachine *machine
,,
guint format);
guint old_format
Notify about format changed.
Since:
ags_machine_resize_audio_channels ()
void ags_machine_resize_audio_channels (AgsMachine *machine
,,
guint new_size);
guint old_size
Resize audio channel allocation.
Since:
ags_machine_resize_pads ()
void ags_machine_resize_pads (AgsMachine *machine
,,
GType channel_type,
guint new_size);
guint old_size
Resize pad allocation.
Parameters
machine |
the AgsMachine |
|
channel_type |
the channel |
|
new_size |
new allocation |
|
old_size |
old allocation |
Since:
ags_machine_map_recall ()
void ags_machine_map_recall (AgsMachine *machine
);
You may want the machine
to add its default recall.
Since:
ags_machine_stop ()
void ags_machine_stop (AgsMachine *machine
,,
GList *recall_id);
gint sound_scope
Notify about to stop playback of recall_id
.
Parameters
machine |
the AgsMachine |
|
recall_id |
the |
|
sound_scope |
the sound scope |
Since:
ags_machine_add_default_recalls ()
void ags_machine_add_default_recalls (AgsMachine *machine
);
ags_machine_add_default_recalls
is deprecated and should not be used in newly-written code.
ags_machine_find_by_name ()
AgsMachine * ags_machine_find_by_name (,
GList *list);
char *name
Find the specified by name
machine.
Since:
ags_machine_playback_set_active ()
void ags_machine_playback_set_active (AgsMachine *machine
,,
AgsPlayback *playback);
gboolean is_active
Start/stop playback
of machine
.
Parameters
machine |
the AgsMachine |
|
playback |
the |
|
is_active |
if |
Since:
ags_machine_set_run ()
void ags_machine_set_run (AgsMachine *machine
,);
gboolean run
Start/stop playback of machine
.
Since:
ags_machine_set_run_extended ()
void ags_machine_set_run_extended (AgsMachine *machine
,,
gboolean run,
gboolean sequencer,
gboolean notation,
gboolean wave);
gboolean midi
Start/stop playback of machine
.
Parameters
machine |
the AgsMachine |
|
run |
if |
|
sequencer |
if doing sequencer |
|
notation |
if doing notation |
|
wave |
if doing wave |
|
midi |
if doing midi |
Since:
ags_machine_get_dialog_model ()
GList * ags_machine_get_dialog_model (AgsMachine *machine
);
Get dialog model.
Since:
ags_machine_add_dialog_model ()
void ags_machine_add_dialog_model (AgsMachine *machine
,);
xmlNode *node
Add node
to machine
.
Since:
ags_machine_remove_dialog_model ()
void ags_machine_remove_dialog_model (AgsMachine *machine
,);
xmlNode *node
Get node
from machine
.
Since:
ags_machine_find_dialog_model ()
GList * ags_machine_find_dialog_model (AgsMachine *machine
,,
GList *dialog_model,
gchar *node_name,
gchar *attribute);
gchar *value
Find dialog model.
Parameters
machine |
the AgsMachine |
|
dialog_model |
the |
|
node_name |
the node name |
|
attribute |
the attribute |
|
value |
the attribute value |
Since:
ags_machine_get_possible_links ()
GtkListStore * ags_machine_get_possible_links (AgsMachine *machine
);
Find links suitable for machine
.
Returns
a
Since:
ags_machine_get_possible_audio_output_connections ()
GtkListStore * ags_machine_get_possible_audio_output_connections (AgsMachine *machine
);
Find audio output connections suitable for machine
.
Returns
a
Since:
ags_machine_get_possible_audio_input_connections ()
GtkListStore * ags_machine_get_possible_audio_input_connections (AgsMachine *machine
);
Find audio input connections suitable for machine
.
Returns
a
Since:
ags_machine_open_files ()
void ags_machine_open_files (AgsMachine *machine
,,
GSList *filenames,
gboolean overwrite_channels);
gboolean create_channels
Opens audio files and modifies or creates new channels if wished.
Parameters
machine |
the AgsMachine |
|
filenames |
the filenames |
|
overwrite_channels |
reset channels |
|
create_channels |
instantiate new channels |
Since:
ags_machine_check_message ()
void ags_machine_check_message (AgsMachine *machine
);
Check message queue for message envelopes.
Since:
ags_machine_new ()
AgsMachine *
ags_machine_new (GObject *soundcard
);
Creates an AgsMachine
Since:
AGS_IS_MACHINE_CLASS()
#define AGS_IS_MACHINE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MACHINE))
AGS_MACHINE()
#define AGS_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE, AgsMachine))
AGS_MACHINE_CLASS()
#define AGS_MACHINE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE, AgsMachineClass))
AGS_MACHINE_GET_CLASS()
#define AGS_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MACHINE, AgsMachineClass))
Types and Values
struct AgsMachineInputLine
struct AgsMachineInputLine { guint pad; guint audio_channel; guint line; gboolean mapped_recall; };
struct AgsMachineAutomationPort
struct AgsMachineAutomationPort { GType channel_type; gchar *control_name; };
struct AgsMachineClass
struct AgsMachineClass { GtkGridClass grid; void (*samplerate_changed)(AgsMachine *machine, guint samplerate, guint old_samplerate); void (*buffer_size_changed)(AgsMachine *machine, guint buffer_size, guint old_buffer_size); void (*format_changed)(AgsMachine *machine, guint format, guint old_format); void (*resize_audio_channels)(AgsMachine *machine, guint new_size, guint old_size); void (*resize_pads)(AgsMachine *machine, GType channel_type, guint new_size, guint old_size); void (*map_recall)(AgsMachine *machine); GList* (*find_port)(AgsMachine *machine); void (*stop)(AgsMachine *machine, GList *recall_id, gint sound_scope); void (*refresh_port)(AgsMachine *machine); };
Property Details
The “audio”
property
“audio”AgsAudio *
The assigned
Owner: AgsMachine
Flags: Read
Since:
The “buffer-size”
property
“buffer-size”guint
The buffer length.
Owner: AgsMachine
Flags: Read / Write
Default value: 1024
Since:
The “format”
property
“format”guint
The format.
Owner: AgsMachine
Flags: Read / Write
Default value: 16
Since:
The “machine-name”
property
“machine-name”char *
The machine's name.
Owner: AgsMachine
Flags: Read / Write
Default value: NULL
Since:
Signal Details
The “buffer-size-changed”
signal
void user_function (AgsMachine *machine,guint buffer_size,guint old_buffer_size,gpointer user_data)
The ::buffer-size-changed signal notifies about changed buffer size.
Parameters
machine |
the AgsMachine |
|
buffer_size |
the buffer size |
|
old_buffer_size |
the old buffer size |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “find-port”
signal
gpointer user_function (AgsMachine *machine,gpointer user_data)
Parameters
machine |
the AgsMachine to resize |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “format-changed”
signal
void user_function (AgsMachine *machine,guint format,guint old_format,gpointer user_data)
The ::format-changed signal notifies about changed format.
Parameters
machine |
the AgsMachine |
|
format |
the format |
|
old_format |
the old format |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “map-recall”
signal
void user_function (AgsMachine *machine,gpointer user_data)
The ::map-recall should be used to add the machine's default recall.
Flags:
Since:
The “refresh-port”
signal
void user_function (AgsMachine *machine,gpointer user_data)
The ::refresh-port signal.
Flags:
Since:
The “resize-audio-channels”
signal
void user_function (AgsMachine *machine,guint new_size,guint old_size,gpointer user_data)
The ::resize-audio-channels signal notifies about changed channel allocation within audio.
Parameters
machine |
the AgsMachine to modify |
|
new_size |
the new size |
|
old_size |
the old size |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “resize-pads”
signal
void user_function (AgsMachine *machine,gpointer channel_type,guint new_size,guint old_size,gpointer user_data)
The ::resize-pads signal notifies about changed channel allocation within audio.
Parameters
machine |
the AgsMachine to modify |
|
channel_type |
either |
|
new_size |
the new size |
|
old_size |
the old size |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “samplerate-changed”
signal
void user_function (AgsMachine *machine,guint samplerate,guint old_samplerate,gpointer user_data)
The ::samplerate-changed signal notifies about changed samplerate.
Parameters
machine |
the AgsMachine |
|
samplerate |
the samplerate |
|
old_samplerate |
the old samplerate |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “stop”
signal
void user_function (AgsMachine *machine,gpointer recall_id,int sound_scope,gpointer user_data)
The ::stop signal gets emited as audio stops playback.
Parameters
machine |
the AgsMachine |
|
recall_id |
the |
|
sound_scope |
the sound scope |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since: