| 1 |
Advanced Gtk+ Sequencer |
| 2 |
==== |
| 3 |
|
| 4 |
The gsequencer binary provides you a user interface. It allows you to play, |
| 5 |
capture and create music. There is a piano roll, automation and wave form |
| 6 |
editor. It has machines for playing drum samples, Soundfont2 sound containers |
| 7 |
and synthesizers. They usually can be connected to a MIDI input source |
| 8 |
(instrument). All sources need to be connected to the sink provided by |
| 9 |
AgsPanel, thus the properties dialog from machine's context menu is |
| 10 |
responsible. |
| 11 |
|
| 12 |
The engine is extensible by following plugin formats: LADSPA, DSSI, LV2, |
| 13 |
VST3 and Audio Unit. |
| 14 |
|
| 15 |
It has support for various audio backends like ALSA, Pulseaudio, JACK, OSSv4, |
| 16 |
WASAPI and CoreAudio. |
| 17 |
|
| 18 |
Copyright (C) 2005-2025 Joël Krähemann |
| 19 |
|
| 20 |
Permission is granted to copy, distribute and/or modify this document |
| 21 |
under the terms of the GNU Free Documentation License, Version 1.3 |
| 22 |
or any later version published by the Free Software Foundation; |
| 23 |
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. |
| 24 |
A copy of the license is included in the section entitled "GNU |
| 25 |
Free Documentation License". |
| 26 |
|
| 27 |
[email protected] |
| 28 |
|
| 29 |
It is recommended to have a realtime kernel in conjunction with ags in order |
| 30 |
to do more computing expensive synthesis. |
| 31 |
|
| 32 |
Please visit http://rt.wiki.kernel.org for more information. |
| 33 |
|
| 34 |
Following site gives you advice in configuring ALSA |
| 35 |
|
| 36 |
http://www.alsa-project.org/main/index.php/Low_latency_howto |
| 37 |
|
| 38 |
You might want to disable systemd accounting. |
| 39 |
|
| 40 |
https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html |
| 41 |
|
| 42 |
systemd-run -p CPUAccounting=false -p MemoryAccounting=false -p TasksAccounting=false -p IOAccounting=false -p BlockIOAccounting=false --scope gsequencer |
| 43 |
|
| 44 |
If you have pulseaudio running you might run `gsequencer` with pasuspender |
| 45 |
like: |
| 46 |
|
| 47 |
pasuspender -- gsequencer |
| 48 |
|
| 49 |
Purpose |
| 50 |
==== |
| 51 |
|
| 52 |
The Advanced Gtk+ Sequencer framework is related to audio computation by |
| 53 |
representing it within a tree structure. It does various abstraction and the |
| 54 |
base library can serve as fundament of any application. |
| 55 |
|
| 56 |
libags provides an application context and a threaded tree. Which is |
| 57 |
synchronized by hard-realtime fashion. In terms of deterministic dead-line. |
| 58 |
Each tic of the used threads has to fulfill its work in order to proceed. The |
| 59 |
file object might be used for light-weight composition or persistency. |
| 60 |
|
| 61 |
libags-audio is built upon libags and provides a tree of audio signals. They |
| 62 |
can be computed in parallel. One key feature is the nested recycling tree. It |
| 63 |
allows to share audio data across channels. Further it avoids to wedge the |
| 64 |
parallel tree. There is support for free plugin standards like LADPSA, DSSI |
| 65 |
and Lv2. So it does give support to read or write MIDI data. |
| 66 |
|
| 67 |
libags-gui is a standalone library providing additional Gtk+-4.0 widgets. |
| 68 |
|
| 69 |
GSequencer is the main application providing a Gtk+-4.0 GUI. Allowing you to |
| 70 |
edit or record notation. It is designed to be accessible you should be able to |
| 71 |
control the entire application by keyboard. The frontend to AGS requires to add |
| 72 |
machines by menubar and link them appropriately with properties dialog. It is |
| 73 |
available of the context menu. Note you can't create any loops within the tree. |
| 74 |
|
| 75 |
Build using mingw |
| 76 |
==== |
| 77 |
|
| 78 |
To build on windows you need gnulib. First import some functions using gnulib |
| 79 |
then compile with msys2. |
| 80 |
|
| 81 |
git clone git://git.sv.gnu.org/gnulib.git |
| 82 |
./gnulib/gnulib-tool --import langinfo regex signal-h sigaction strings sys_types memcpy lib-msvc-compat |
| 83 |
autoreconf -fi |
| 84 |
./configure --prefix=/mingw64 --disable-rt --enable-threads=windows --enable-w32api --disable-alsa --enable-alsa-compat --disable-pulse --disable-jack --enable-wasapi --disable-x11 --with-poppler |
| 85 |
make -j8 |
| 86 |
make install |
| 87 |
|
| 88 |
Build with VST3 support |
| 89 |
==== |
| 90 |
|
| 91 |
To build gsequencer with VST3 support you need download and compile the VST3 |
| 92 |
SDK. Then you can set some env variables configure is aware of. |
| 93 |
|
| 94 |
export CXXFLAGS="-include cstdio -include limits -std=gnu++20 -fpermissive" |
| 95 |
export LIBAGS_VST3_RELEASE_TYPE="-DRELEASE" |
| 96 |
export LIBAGS_VST3_CXXFLAGS="-I$HOME/github/VST_SDK/vst3sdk" |
| 97 |
export LIBAGS_VST3_LIBDIR="-L$HOME/github/VST_SDK/build/lib" |
| 98 |
|
| 99 |
./configure --prefix=/usr --enable-vst3 |
| 100 |
make -j8 |
| 101 |
sudo make install |
| 102 |
|
| 103 |
When you have lost |
| 104 |
==== |
| 105 |
|
| 106 |
Assumed you modify frequencies of threads, you may encounter "out-of-sync" this |
| 107 |
is some sort of dead-lock. Thought, it would be possible to recover such but it |
| 108 |
requires in depth knowledge of synchronization and its implications as well how |
| 109 |
it is implemented with GSequencer. |
| 110 |
|
| 111 |
Advanced Gtk+ Sequencer does tic-based parallelism to perform additions or |
| 112 |
compute synths, filters and other procedural work. Only within the very same |
| 113 |
tic can be used conditional locks. |
| 114 |
|
| 115 |
There is a worker thread abstraction provided by the framework, which requires |
| 116 |
a dedicated strategy to alter values of ports. |
| 117 |
|
| 118 |
The application interface consumes messages provided by message delivery. Just |
| 119 |
add the wanted message queue. |
| 120 |
|
| 121 |
General Notes on Licensing |
| 122 |
==== |
| 123 |
|
| 124 |
The Advanced Gtk+ Sequencer code base uses copyright year ranges for its |
| 125 |
source files. There was much effort on implementing the API since 2005 as of to |
| 126 |
day in year 2023. The source code was developed by Joël Krähemann and is the |
| 127 |
copyright holder. |
| 128 |
|
| 129 |
Notes on copyrighted files listed: |
| 130 |
|
| 131 |
* AUTHORS (Copyright (C) 2005-2018 Joël Krähemann, permissive) |
| 132 |
* COPYING (this is the GNU GPLv3+ license) |
| 133 |
* COPYING.docs (this is the GNU FDL-1.3 license) |
| 134 |
* COPYING.server (this is the GNU AGPL-3+ license) |
| 135 |
* COPYING.stk-4.3 (this is the STK-3.3 license) |
| 136 |
* ags_license_header (this is the GPLv3+ license header for *.c and *.h files) |