| Top |
| void | ags_wave_set_samplerate () |
| void | ags_wave_set_buffer_size () |
| void | ags_wave_set_format () |
| GList * | ags_wave_find_near_timestamp () |
| GList * | ags_wave_add () |
| void | ags_wave_add_buffer () |
| void | ags_wave_remove_buffer () |
| GList * | ags_wave_get_selection () |
| gboolean | ags_wave_is_buffer_selected () |
| GList * | ags_wave_find_region () |
| void | ags_wave_free_selection () |
| void | ags_wave_add_region_to_selection () |
| void | ags_wave_remove_region_from_selection () |
| void | ags_wave_add_all_to_selection () |
| xmlNode * | ags_wave_copy_selection () |
| xmlNode * | ags_wave_cut_selection () |
| void | ags_wave_insert_from_clipboard () |
| void | ags_wave_insert_from_clipboard_extended () |
| AgsWave * | ags_wave_new () |
| #define | AGS_IS_WAVE() |
| #define | AGS_WAVE() |
| #define | AGS_WAVE_CLASS() |
| #define | AGS_WAVE_GET_CLASS() |
| GType | ags_wave_get_type () |
| AgsAudio * | audio | Read / Write |
| guint | audio-channel | Read / Write |
| AgsBuffer * | buffer | Read / Write |
| guint | buffer-size | Read / Write |
| guint | format | Read / Write |
| guint | samplerate | Read / Write |
| AgsTimestamp * | timestamp | Read / Write |
| #define | AGS_WAVE_DEFAULT_BPM |
| #define | AGS_WAVE_TICS_PER_BEAT |
| #define | AGS_WAVE_MINIMUM_BUFFER_LENGTH |
| #define | AGS_WAVE_DEFAULT_LENGTH |
| #define | AGS_WAVE_DEFAULT_JIFFIE |
| #define | AGS_WAVE_DEFAULT_DURATION |
| #define | AGS_WAVE_DEFAULT_OFFSET |
| #define | AGS_WAVE_CLIPBOARD_VERSION |
| #define | AGS_WAVE_CLIPBOARD_TYPE |
| #define | AGS_WAVE_CLIPBOARD_FORMAT |
| enum | AgsWaveFlags |
| #define | AGS_TYPE_WAVE |
| struct | AgsWave |
| struct | AgsWaveClass |
void ags_wave_set_samplerate (AgsWave *wave,guint samplerate);
Set samplerate.
Since: 1.4.0
void ags_wave_set_buffer_size (AgsWave *wave,guint buffer_size);
Set buffer size.
Since: 1.4.0
void ags_wave_set_format (AgsWave *wave,guint format);
Set format.
Since: 1.4.0
GList * ags_wave_find_near_timestamp (GList *wave,guint audio_channel,AgsTimestamp *timestamp);
Retrieve appropriate wave for timestamp.
wave |
a GList containing AgsWave |
|
audio_channel |
the matching audio channel |
|
timestamp |
the matching timestamp, or |
[allow-none] |
Since: 1.4.0
GList * ags_wave_add (GList *wave,AgsWave *new_wave);
Add new_wave
sorted to wave
Since: 1.4.0
void ags_wave_add_buffer (AgsWave *wave,AgsBuffer *buffer,gboolean use_selection_list);
Adds a buffer to wave.
Since: 1.4.0
void ags_wave_remove_buffer (AgsWave *wave,AgsBuffer *buffer,gboolean use_selection_list);
Removes a buffer from wave.
Since: 1.4.0
GList *
ags_wave_get_selection (AgsWave *wave);
Retrieve selection.
Since: 1.4.0
gboolean ags_wave_is_buffer_selected (AgsWave *wave,AgsBuffer *buffer);
Check selection for buffer.
Since: 1.4.0
GList * ags_wave_find_region (AgsWave *wave,guint x0,guint x1,gboolean use_selection_list);
Find buffers by offset and tone region.
wave |
an AgsWave |
|
x0 |
start offset |
|
x1 |
end offset |
|
use_selection_list |
if |
Since: 1.4.0
void
ags_wave_free_selection (AgsWave *wave);
Clear selection.
Since: 1.4.0
void ags_wave_add_region_to_selection (AgsWave *wave,guint x0,guint x1,gboolean replace_current_selection);
Select buffers within region.
wave |
an AgsWave |
|
x0 |
start offset |
|
x1 |
end offset |
|
replace_current_selection |
if |
Since: 1.4.0
void ags_wave_remove_region_from_selection (AgsWave *wave,guint x0,guint x1);
Remove buffers within region of selection.
Since: 1.4.0
void
ags_wave_add_all_to_selection (AgsWave *wave);
Select all.
Since: 1.4.0
xmlNode *
ags_wave_copy_selection (AgsWave *wave);
Copy selection to clipboard.
Since: 1.4.0
xmlNode *
ags_wave_cut_selection (AgsWave *wave);
Cut selection to clipboard.
Since: 1.4.0
void ags_wave_insert_from_clipboard (AgsWave *wave,xmlNode *wave_node,gboolean reset_x_offset,guint x_offset,gdouble delay,guint attack);
Paste previously copied buffers.
wave |
an AgsWave |
|
wave_node |
the clipboard XML data |
|
reset_x_offset |
if |
|
x_offset |
region start cursor offset |
|
delay |
the delay to be used |
|
attack |
the attack to be used |
Since: 1.4.0
void ags_wave_insert_from_clipboard_extended (AgsWave *wave,xmlNode *wave_node,gboolean reset_x_offset,guint x_offset,gdouble delay,guint attack,gboolean match_audio_channel,gboolean do_replace);
Paste previously copied buffers.
wave |
an AgsWave |
|
wave_node |
the clipboard XML data |
|
reset_x_offset |
if |
|
x_offset |
region start cursor offset |
|
delay |
the delay to be used |
|
attack |
the attack to be used |
|
match_channel |
only paste if channel matches |
|
do_replace |
if |
Since: 1.4.0
AgsWave * ags_wave_new (GObject *audio,guint audio_channel);
Creates a AgsWave, assigned to audio_channel
.
Since: 1.4.0
#define AGS_WAVE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_WAVE, AgsWaveClass))
#define AGS_WAVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_WAVE, AgsWaveClass))
#define AGS_WAVE_DEFAULT_LENGTH (65535.0 / AGS_WAVE_TICS_PER_BEAT - AGS_WAVE_MINIMUM_BUFFER_LENGTH)
#define AGS_WAVE_DEFAULT_JIFFIE (60.0 / AGS_WAVE_DEFAULT_BPM / AGS_WAVE_TICS_PER_BEAT)
#define AGS_WAVE_DEFAULT_DURATION (AGS_WAVE_DEFAULT_LENGTH * AGS_WAVE_DEFAULT_JIFFIE * AGS_MICROSECONDS_PER_SECOND)
Enum values to control the behavior or indicate internal state of AgsWave by enable/disable as flags.
“audio-channel” property “audio-channel” guint
The effect's audio-channel.
Flags: Read / Write
Allowed values: <= 65535
Default value: 0
Since: 1.4.0
“buffer-size” property “buffer-size” guint
The audio buffer's buffer size.
Flags: Read / Write
Default value: 1024
Since: 1.4.0
“format” property “format” guint
The audio buffer's format.
Flags: Read / Write
Default value: 16
Since: 1.4.0
“samplerate” property “samplerate” guint
The audio buffer's samplerate.
Flags: Read / Write
Default value: 48000
Since: 1.4.0