1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/* Copyright (C) 2005-2018 Joël Krähemann
* Permission is granted to copy, distribute and/or modify this document
* under the terms of the GNU Free Documentation License, Version 1.3
* or any later version published by the Free Software Foundation;
* with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
* A copy of the license is included in the section entitled "GNU
* Free Documentation License".
*/
#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);
|