Top |
#define | AGS_PATTERN_GET_OBJ_MUTEX() |
GRecMutex * | ags_pattern_get_obj_mutex () |
gboolean | ags_pattern_test_flags () |
void | ags_pattern_set_flags () |
void | ags_pattern_unset_flags () |
GList * | ags_pattern_find_near_timestamp () |
GObject * | ags_pattern_get_channel () |
void | ags_pattern_set_channel () |
AgsTimestamp * | ags_pattern_get_timestamp () |
void | ags_pattern_set_timestamp () |
void | ags_pattern_get_dim () |
void | ags_pattern_set_dim () |
GObject * | ags_pattern_get_port () |
void | ags_pattern_set_port () |
gboolean | ags_pattern_is_empty () |
gboolean | ags_pattern_get_bit () |
void | ags_pattern_toggle_bit () |
AgsNote * | ags_pattern_get_note () |
AgsPattern * | ags_pattern_new () |
AgsChannel * | channel | Read / Write |
gboolean | current-bit | Read |
guint | first-index | Read / Write |
guint | offset | Read / Write |
AgsPort * | port | Read / Write |
guint | second-index | Read / Write |
AgsTimestamp * | timestamp | Read / Write |
#define | AGS_PATTERN_DEFAULT_BPM |
#define | AGS_PATTERN_TICS_PER_BEAT |
#define | AGS_PATTERN_MINIMUM_NOTE_LENGTH |
#define | AGS_PATTERN_MAXIMUM_NOTE_LENGTH |
#define | AGS_PATTERN_DEFAULT_LENGTH |
#define | AGS_PATTERN_DEFAULT_JIFFIE |
#define | AGS_PATTERN_DEFAULT_DURATION |
#define | AGS_PATTERN_DEFAULT_OFFSET |
AgsPattern represents an audio pattern of tones. The bitmask pattern is stored in has 2 level of banks.
You can check if a bit is set by calling ags_pattern_get_bit()
.
To enable/disable a bit call ags_pattern_toggle_bit()
.
#define AGS_PATTERN_GET_OBJ_MUTEX(obj) (&(((AgsPattern *) obj)->obj_mutex))
GRecMutex *
ags_pattern_get_obj_mutex (AgsPattern *pattern
);
Get object mutex.
Since: 3.1.0
gboolean ags_pattern_test_flags (AgsPattern *pattern
,guint flags
);
Test flags
to be set on pattern
.
Since: 3.0.0
void ags_pattern_set_flags (AgsPattern *pattern
,guint flags
);
Set flags.
Since: 3.0.0
void ags_pattern_unset_flags (AgsPattern *pattern
,guint flags
);
Unset flags.
Since: 3.0.0
GList * ags_pattern_find_near_timestamp (GList *pattern
,AgsTimestamp *timestamp
);
Retrieve appropriate pattern for timestamp.
pattern |
the GList containing AgsPattern. |
[element-type AgsAudio.Pattern][transfer none] |
timestamp |
the matching AgsTimestamp |
Since: 3.0.0
GObject *
ags_pattern_get_channel (AgsPattern *pattern
);
Get channel.
Since: 3.1.0
void ags_pattern_set_channel (AgsPattern *pattern
,GObject *channel
);
Set channel.
Since: 3.1.0
AgsTimestamp *
ags_pattern_get_timestamp (AgsPattern *pattern
);
Get timestamp.
Since: 3.1.0
void ags_pattern_set_timestamp (AgsPattern *pattern
,AgsTimestamp *timestamp
);
Set timestamp.
Since: 3.1.0
void ags_pattern_get_dim (AgsPattern *pattern
,guint *dim0
,guint *dim1
,guint *length
);
Get the pattern's dimensions.
pattern |
an AgsPattern |
|
dim0 |
bank 0 size. |
[out] |
dim1 |
bank 1 size. |
[out] |
length |
amount of beats. |
[out] |
Since: 3.1.0
void ags_pattern_set_dim (AgsPattern *pattern
,guint dim0
,guint dim1
,guint length
);
Reallocates the pattern's dimensions.
Since: 3.0.0
gboolean ags_pattern_get_bit (AgsPattern *pattern
,guint i
,guint j
,guint bit
);
Check for tic to be played.
Since: 3.0.0
void ags_pattern_toggle_bit (AgsPattern *pattern
,guint i
,guint j
,guint bit
);
Toggle tone.
Since: 3.0.0
AgsNote * ags_pattern_get_note (AgsPattern *pattern
,guint bit
);
Get note of pattern
.
Since: 3.3.0
AgsPattern * ags_pattern_new ();
Creates a new instance of AgsPattern
Since: 3.0.0
#define AGS_PATTERN_DEFAULT_LENGTH (65535.0 / AGS_PATTERN_TICS_PER_BEAT - AGS_PATTERN_MAXIMUM_NOTE_LENGTH)
#define AGS_PATTERN_DEFAULT_JIFFIE (60.0 / AGS_PATTERN_DEFAULT_BPM / AGS_PATTERN_TICS_PER_BEAT)
#define AGS_PATTERN_DEFAULT_DURATION (AGS_PATTERN_DEFAULT_LENGTH * AGS_PATTERN_DEFAULT_JIFFIE * AGS_USEC_PER_SEC)
“channel”
property“channel” AgsChannel *
The pattern's channel.
Owner: AgsPattern
Flags: Read / Write
Since: 3.3.0
“current-bit”
property “current-bit” gboolean
Offset of current position.
Owner: AgsPattern
Flags: Read
Default value: FALSE
Since: 3.0.0
“first-index”
property “first-index” guint
Selected bank 0.
Owner: AgsPattern
Flags: Read / Write
Allowed values: <= 256
Default value: 0
Since: 3.0.0
“offset”
property “offset” guint
Position of pattern.
Owner: AgsPattern
Flags: Read / Write
Allowed values: <= 65535
Default value: 0
Since: 3.0.0
“port”
property“port” AgsPort *
The pattern's port.
Owner: AgsPattern
Flags: Read / Write
Since: 3.0.0
“second-index”
property “second-index” guint
Selected bank 1.
Owner: AgsPattern
Flags: Read / Write
Allowed values: <= 256
Default value: 0
Since: 3.0.0