AgsChannel forms your audio processing tree and contains recalls, too. You might want to iterate the channels of your audio object or just call one of these functions:
As you see there is a grained access to channels. You can lookup channels from with the same audio channel with the functions containing pad in its name. An other exciting feature is finding channels having an assigned recycling. These functions operate on the very same audio channel.
There can AgsPattern being added to a channel by ags_channel_add_pattern(). Later if not used anymore likewise call ags_channel_remove_pattern().
Example 6.1. Adding AgsPattern
#include <glib.h> #include <glib-object.h> #include <ags/libags.h> #include <ags/libags-audio.h> AgsChannel *channel; AgsPattern *pattern; guint n_bank_0, n_bank_1; guint length; /* create channel */ channel = ags_channel_new(NULL); /* create pattern, set dimension and add it to channel */ n_bank_0 = 4; n_bank_1 = 12; length = 64; pattern = ags_pattern_new(); ags_pattern_set_dim(pattern, n_bank_0, n_bank_1, length); ags_channel_add_pattern(channel, pattern);